in reply to Nagios plugin gives “no output returned” using compiled perl

Are you completely sure that exit 0; is different from no exit at all?

As silly as it might be, what about Acme::Bleach to "hide" your source? PAR::Packer also has a few filters for obfuscation.

Random guess, have you tried $|=1;?

Replies are listed 'Best First'.
Re^2: Nagios plugin gives “no output returned” using compiled perl
by aditya1977 (Novice) on Aug 01, 2014 at 13:22 UTC

    That was it!!

    $| = 1;

    OMG I cant believe it was so stupidly obvious!! Thanks's a bunch!! Ive posted this everywhere but Perl monks are the best :-)