projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fddd24
)
prototype error in File::stat
author
Graham Barr
<Graham.Barr@tiuk.ti.com>
Tue, 18 Feb 1997 07:48:40 +0000
(07:48 +0000)
committer
Chip Salzenberg
<chip@atlantic.net>
Fri, 21 Feb 1997 16:41:00 +0000
(
04:41
+1200)
The prototype for lstat in File::stat is wrong. It stats that is expects
a GLOB. It should be expecting a scalar, the same as File::stat::stat.
p5p-msgid: <
199702180748
.HAA14151@ultra-boy>
lib/File/stat.pm
patch
|
blob
|
history
diff --git
a/lib/File/stat.pm
b/lib/File/stat.pm
index
581fbf3
..
014af60
100644
(file)
--- a/
lib/File/stat.pm
+++ b/
lib/File/stat.pm
@@
-34,7
+34,7
@@
sub populate (@) {
return $stob;
}
-sub lstat (
*
) { populate(CORE::lstat(shift)) }
+sub lstat (
$
) { populate(CORE::lstat(shift)) }
sub stat ($) {
my $arg = shift;