Mark J. Reed [Fri, 15 Dec 2000 21:22:29 +0000 (16:22 -0500)]
Message-Id: <
200012160222.VAA13986@strange.turner.com>
p4raw-id: //depot/perl@8193
$name = uc $name;
$name = "LOG_$name" unless $name =~ /^LOG_/;
$name = "Sys::Syslog::$name";
- eval { &$name } || -1;
+ # Can't have just eval { &$name } || -1 because some LOG_XXX may be zero.
+ my $value = eval { &$name };
+ defined $value ? $value : -1;
}
sub connect {