Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Error Handling with Packages

by holli (Abbot)
on May 23, 2005 at 16:04 UTC ( #459605=note: print w/replies, xml ) Need Help??


in reply to Error Handling with Packages

use eval BLOCK
use strict; use warnings; eval { &GWBush; }; print "Error: $@" if $@; sub GWBush { die "I'm a liar"; }


holli, /regexed monk/

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2020-12-01 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?