For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > December 2005 > Re: something like OnError Resume Next in VB









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: something like OnError Resume Next in VB
Paul Lalli

2005-12-16, 7:57 am

Christian Maier wrote:
> Is there something similar to Visual Basics OnError Resume Next
> statement. If an Perl-Error occours my deamon should log it but not
> die!


Well, I have no idea what a Visual Basic OnError Resume Next statement
is, but if you're looking to handle Perl errors, you probably want to
look at one or more of:

perldoc -f eval
to trap errors with specific statements or blocks

%SIG in perldoc perlvar
to modify the die() handler

"END blocks" in perldoc perlmod
to execute code just before program termination.


Perhaps if you could specify exactly what it is you're looking to do,
someone could give you more specialized assistance

Paul Lalli

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com