local $SIG{ALRM} = sub { die "alarm\n" }; #### 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;}