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 :)
In reply to Re: Sys::Syslog no output
by McDarren
in thread Sys::Syslog no output
by sunadmn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |