Skip to content

Commit

Permalink
fix stat() and lstat() calls for perl 5.23.3+ (evalEmpire#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
eserte committed Mar 22, 2016
1 parent 572f872 commit 26a254d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/perl5i/2.pm
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,12 @@ sub perl5i_die {

# File::stat does not play nice in list context
sub stat {
return CORE::stat(@_) if wantarray;
return CORE::stat($_[0]) if wantarray;
return File::stat::stat(@_);
}

sub lstat {
return CORE::lstat(@_) if wantarray;
return CORE::lstat($_[0]) if wantarray;
return File::stat::lstat(@_);
}

Expand Down

0 comments on commit 26a254d

Please sign in to comment.