Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix breakage caused by @*INC only containing Str
  • Loading branch information
lizmat committed May 4, 2015
1 parent 8b3af84 commit c4292b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Inline/Perl5.pm6
Expand Up @@ -17,7 +17,8 @@ sub native(Sub $sub) {
state Str $path;
unless $path {
for @*INC {
if my @files = ($_.files($base) || $_.files("blib/$base")) {
my $cur = $_ ~~ Str ?? INCLUDE-SPEC2CUR($_) !! $_;
if my @files = ($cur.files($base) || $cur.files("blib/$base")) {
my $files = @files[0]<files>;
my $tmp = $files{$base} || $files{"blib/$base"};

Expand Down

0 comments on commit c4292b5

Please sign in to comment.