Skip to content

Commit

Permalink
Merge pull request #293 from eserte/master
Browse files Browse the repository at this point in the history
fix stat() and lstat() calls for perl 5.23.3+ (#291)
  • Loading branch information
schwern committed May 31, 2016
2 parents 76034fb + 26a254d commit 9101026
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 9101026

Please sign in to comment.