projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
798567d
)
Avoid "uninitialized" warnings from POSIX::constant()
Chip Salzenberg [Tue, 14 Jan 1997 04:01:03 +0000 (16:01 +1200)]
ext/POSIX/POSIX.pm
patch
|
blob
|
blame
|
history
diff --git
a/ext/POSIX/POSIX.pm
b/ext/POSIX/POSIX.pm
index
31ee642
..
b095ffe
100644
(file)
--- a/
ext/POSIX/POSIX.pm
+++ b/
ext/POSIX/POSIX.pm
@@
-194,7
+194,7
@@
sub AUTOLOAD {
local $! = 0;
my $constname = $AUTOLOAD;
$constname =~ s/.*:://;
- my $val = constant($constname, $_[0]);
+ my $val = constant($constname, @_ ? $_[0] : 0);
if ($! == 0) {
*$AUTOLOAD = sub { $val };
}