Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: perl deferring die to calling method

by robin (Chaplain)
on Dec 09, 2005 at 23:03 UTC ( [id://515672]=note: print w/replies, xml ) Need Help??


in reply to perl deferring die to calling method

Instead of using die, use croak from the Carp package. It’s designed for exactly this situation.
## This is B.pm ## package B; use Carp 'croak'; sub foo { croak "Your data is screwed"; }

Log In?
Username:
Password:

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

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

    No recent polls found