in reply to Sys::Syslog no output

The line:
if (@return > 1)
is evaluating @return in scalar context. And because your $cmd returns just a single line, you are effectively saying:
if (1 >1)
of course, 1 will never be greater than 1, so you get no output :p
Change it to:
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
    Ahhh thank you a million times over that did the trick.
    SUNADMN
    USE PERL