Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Life after DIE

by lhoward (Vicar)
on Jan 11, 2002 at 23:46 UTC ( [id://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';

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-24 13:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found