Skip to content

Commit

Permalink
remove the undef term from November
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Dec 23, 2009
1 parent a194133 commit d598e32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/November/Cache.pm
Expand Up @@ -15,7 +15,7 @@ method set-cache-entry( $key, $value ) {

method get-cache-entry( $key ) {
my $file = self.cache-dir ~ '/' ~ $key;
return undef unless $file ~~ :e;
return Nil unless $file ~~ :e;
my $string = slurp( $file );
return $string;
}
Expand Down
6 changes: 3 additions & 3 deletions lib/Text/Markup/Wiki/MediaWiki.pm
Expand Up @@ -32,12 +32,12 @@ class Text::Markup::Wiki::MediaWiki {
if @parlist[$ix] ~~ /^'<p>'/ && @parlist[$ix+1] ~~ /^'<p>'/ {
@parlist[$ix+1] = @parlist[$ix] ~ @parlist[$ix+1];
@parlist[$ix+1] .= subst( '</p><p>', ' ' );
@parlist[$ix] = undef;
@parlist[$ix] = Mu;
}
elsif @parlist[$ix] ~~ /^'<uli>'/ && @parlist[$ix+1] ~~ /^'<uli>'/
|| @parlist[$ix] ~~ /^'<oli>'/ && @parlist[$ix+1] ~~ /^'<oli>'/ {
@parlist[$ix+1] = [~] @parlist[$ix], "\n", @parlist[$ix+1];
@parlist[$ix] = undef;
@parlist[$ix] = Mu;
}
}

Expand Down Expand Up @@ -127,7 +127,7 @@ class Text::Markup::Wiki::MediaWiki {
}
elsif $token<wikilink> {
take defined $link_maker
?? $link_maker(~$token<wikilink><page>, undef)
?? $link_maker(~$token<wikilink><page>, Mu)
!! ~$token<wikilink>;
}
elsif $token<extlink> {
Expand Down

0 comments on commit d598e32

Please sign in to comment.