Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: perl deferring die to calling method

by ioannis (Monsignor)
on Dec 10, 2005 at 01:56 UTC ( #515683=note: print w/replies, xml ) Need Help??


in reply to perl deferring die to calling method

You could also use caller(). In the example bellow, I have renamed the package name from B.pm to Bb.pm -- so we don't load from the official B namespace.
package Bb; sub foo { die "your data is screwed at @{[ caller ]}" ; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://515683]
help
Chatterbox?
[Discipulus]: good Autumn/Fall start monks!

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2017-09-22 07:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (259 votes). Check out past polls.

    Notices?