in reply to Sys::Syslog no output
is evaluating @return in scalar context. And because your $cmd returns just a single line, you are effectively saying:if (@return > 1)
of course, 1 will never be greater than 1, so you get no output :pif (1 >1)
if (@return) {
Cheers,
Darren :)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Sys::Syslog no output
by sunadmn (Curate) on Jan 23, 2006 at 18:15 UTC |