Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Re^3: 255: perl compilation error code and ssh cannot connect code (updated)
in thread 255: perl compilation error code and ssh cannot connect code

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,
-- Hauke D

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1175137]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 21:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found