Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Life after DIE

by lhoward (Vicar)
on Jan 11, 2002 at 23:46 UTC ( #138112=note: print w/ replies, xml ) Need Help??

in reply to Life after DIE

Another option would be to replace the DIE handler for the execcution of the step that throws the error:

$SIG{__DIE__}=sub( my $d=shift; if($d eq 'error to really die on'){ print $d; exit; }elsif($d eq 'some other die to handle specially'){ # do some special code to recover from this die } #just return to code on other dies ); $_=PDF::Core::PDFGetline ($fd,\$offset); die "Can't read cross-reference section, according to trailer\n" if ! +/xref\r?\n?/ ; #resturn to default DIE handler $sig{__DIE__}='DEFAULT';

Comment on Re: Life after DIE
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://138112]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (14)
As of 2015-11-25 20:59 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (690 votes), past polls