Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: perl deferring die to calling method

by ioannis (Parson)
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 to -- so we don't load from the official B namespace.

package Bb; sub foo { die "your data is screwed at @{[ caller ]}" ; }

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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (1)
As of 2015-11-27 01:07 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (710 votes), past polls