Sys::Syslog: hyphens in hostnames
authorJarkko Hietaniemi <Jarkko.Hietaniemi@cc.hut.fi>
Tue, 15 Apr 1997 14:21:53 +0000 (17:21 +0300)
committerChip Salzenberg <chip@atlantic.net>
Mon, 14 Apr 1997 12:00:00 +0000 (00:00 +1200)
commit6c696f6b7d7a60691ee1a672145eca09129d9019
treea93676e435f9734e8fd8b6fe1f918cc0aed0efcc
parentcf04b53c7ea44c89b75ae0c60c2e66546f15be34
Sys::Syslog: hyphens in hostnames

Jerome Abela writes:
 >
 > In sub connect of Sys::Syslog, someone wrote:
 >         ($host) = $host_uniq =~ /(\w+)/;
 >
 > But, if the name contains a '-', it gets truncated. The RE should
 > rather be someting like [a-zA-Z0-9-]+, shouldn't it ?

p5p-msgid: 199704151421.RAA19693@alpha.hut.fi
lib/Sys/Syslog.pm