in reply to Re: how to prevent perl script from terminating
in thread how to prevent perl script from terminating

Hi thanks for your reply. Im going to try that. One small question. Can you please explain why you are using the loop around the code ?

Thanks in advanced ..

  • Comment on Re^2: how to prevent perl script from terminating

Replies are listed 'Best First'.
Re^3: how to prevent perl script from terminating
by GotToBTru (Prior) on May 20, 2015 at 18:22 UTC

    The loop will keep trying the write_partial until it succeeds.

    Dum Spiro Spero
Re^3: how to prevent perl script from terminating
by kamrul (Acolyte) on May 20, 2015 at 18:14 UTC
    Just tried like the below :
    eval{ $wrote = write_partial($ssl, $written, $to_write, $$data_ref); }; print "Write error $@" if $@;
    But no luck! the script is terminating showing no error. Is there anything else I can try ?