Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: perl deferring die to calling method

by robin (Chaplain)
on Dec 09, 2005 at 23:03 UTC ( #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"; }


Comment on Re: perl deferring die to calling method
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (14)
As of 2015-07-07 15:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (91 votes), past polls