in reply to Re: 255: perl compilation error code and ssh cannot connect code
in thread 255: perl compilation error code and ssh cannot connect code

Thank you very much !!

I forgot to say on the description that I was playing with $SIG{__DIE__} and with END code.

But I did not realized about END code should go before the end of the script, like says haukex at Re^2: 255: perl compilation error code and ssh cannot connect code (updated)

It worked !
  • Comment on Re^2: 255: perl compilation error code and ssh cannot connect code

Replies are listed 'Best First'.
Re^3: 255: perl compilation error code and ssh cannot connect code
by haukex (Archbishop) on Nov 02, 2016 at 08:29 UTC

    Hi i5513,

    But I did not realized about END code should go before the end of the script

    The idea is Perl needs to see the END block before it hits the error, otherwise it doesn't get queued for execution. So it's best to put the END block as early as possible. See also BEGIN, UNITCHECK, CHECK, INIT and END.

    Hope this helps,
    -- Hauke D

      Yes, I see :) Thanks !