Skip to content

Commit 97ffc62

Browse files
committed
File::stat: we have signatures, so use them
1 parent e06ae46 commit 97ffc62

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/File/stat.pm

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,11 @@ sub populate {
194194
return $stob;
195195
}
196196

197-
sub lstat :prototype(_) { populate(CORE::lstat(shift)) }
197+
sub lstat :prototype(_) ($arg) {
198+
populate(CORE::lstat $arg)
199+
}
198200

199-
sub stat :prototype(_) {
200-
my $arg = shift;
201+
sub stat :prototype(_) ($arg) {
201202
my $st = populate(CORE::stat $arg);
202203
return $st if defined $st || ref $arg;
203204
# ... maybe $arg is the name of a bareword handle?

0 commit comments

Comments
 (0)