in reply to how to prevent perl script from terminating
Joewhile (1) { $wrote = undef; eval { $wrote = write_partial($ssl, $written, $to_write, $$data_ref) +; 1; } or do { print "WRITE PARTIAL FAILED L: \"" . __LINE__ . "\"\n"; sle +ep 3; next; } if(defined $wrote) { print "WROTE: \"$wrote\". LAST L: \"" . __LINE__ . "\"\n"; last; } else { print "DO NOT KNOW HOW I GOT HERE WROTE: \"$wrote\". LAST L: + \"" . __LINE__ . "\"\n"; } } #EO WHILE
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: how to prevent perl script from terminating
by kamrul (Acolyte) on May 20, 2015 at 18:01 UTC | |
by GotToBTru (Prior) on May 20, 2015 at 18:22 UTC | |
by kamrul (Acolyte) on May 20, 2015 at 18:14 UTC |