in reply to Re: Executing Systems Calls with Care
in thread Executing Systems Calls with Care
I can replace the die "alarm\n" section here with a subroutine with no problems (actually tested it ;->)local $SIG{ALRM} = sub { die "alarm\n" };
section?if ($@) { die unless $@ eq "alarm\n"; # propagate unexpected errors # handle the timed out operation }
my $a='62696c6c77667269656e6440676d61696c2e636f6d'; while ($a=~m/(^.{2})/s) {print unpack('A',pack('H*',"$1"));$a=~s/^.{2}//s;}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Executing Systems Calls with Care
by matija (Priest) on Feb 15, 2005 at 09:23 UTC | |
|
Re^3: Executing Systems Calls with Care
by phaylon (Curate) on Feb 15, 2005 at 12:05 UTC |