Skip to content

Commit

Permalink
[compiler] Be tolerant of .to-posix returning a list now
Browse files Browse the repository at this point in the history
  • Loading branch information
sorear committed Mar 25, 2011
1 parent 3cc93a7 commit 7a937de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NieczaPathSearch.pm6
Expand Up @@ -13,7 +13,7 @@ method load_module($name) {
my $text = $fn.slurp;
# check borrowed from STD to weed out Perl 5 heuristically
next if $ext eq 'pm' && $text ~~ /^^\h*package\h+\w+\s*\;/;
return (~$fn.realpath, $fn.modified.to-posix, $text);
return (~$fn.realpath, $fn.modified.to-posix.[0], $text);
}
}
}
Expand All @@ -23,5 +23,5 @@ method load_module($name) {

method load_file($name) {
my $p = $name.IO;
(~$p.realpath, $p.modified.to-posix, $p.slurp);
(~$p.realpath, $p.modified.to-posix.[0], $p.slurp);
}

0 comments on commit 7a937de

Please sign in to comment.