P is for Practical | |
PerlMonks |
Re^4: 255: perl compilation error code and ssh cannot connect code (updated)by haukex (Archbishop) |
on Nov 02, 2016 at 13:42 UTC ( [id://1175137]=note: print w/replies, xml ) | Need Help?? |
Hi i5513, Maybe good idea only change the result if it is executed via ssh Sure, I'd say that's a good idea. Just a minor nitpick, personally I'd test an environment variable for truth instead of definedness, since that allows me to do ENVVAR=0 to disable it, and I'd use == (numeric) instead of eq (string) comparisons: $?=254 if $ENV{SSH_CONNECTION} && $?==255; Regards,
In Section
Seekers of Perl Wisdom
|
|