X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/6765206cfafdb7dbdf4791696e6befaa040a8193..b9f13614400d2300b9be70f1589bc5e1a203e67b:/ext/Sys/Syslog/Syslog.pm diff --git a/ext/Sys/Syslog/Syslog.pm b/ext/Sys/Syslog/Syslog.pm index 13598e7..244157f 100644 --- a/ext/Sys/Syslog/Syslog.pm +++ b/ext/Sys/Syslog/Syslog.pm @@ -7,7 +7,7 @@ use Carp; @ISA = qw(Exporter DynaLoader); @EXPORT = qw(openlog closelog setlogmask syslog); @EXPORT_OK = qw(setlogsock); -$VERSION = '0.04'; +$VERSION = '0.05'; # it would be nice to try stream/unix first, since that will be # most efficient. However streams are dodgy - see _syslog_send_stream @@ -394,6 +394,7 @@ sub _syslog_send_socket { sub xlate { local($name) = @_; + return $name+0 if $name =~ /^\s*\d+\s*$/; $name = uc $name; $name = "LOG_$name" unless $name =~ /^LOG_/; $name = "Sys::Syslog::$name";