Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Parent Subroutine

by Herkum (Parson)
on Apr 27, 2010 at 16:30 UTC ( #837142=note: print w/ replies, xml ) Need Help??


in reply to Parent Subroutine

Better to use Carp for tracing a call stack than caller.


Comment on Re: Parent Subroutine
Replies are listed 'Best First'.
Re^2: Parent Subroutine
by doug (Pilgrim) on Apr 27, 2010 at 18:42 UTC

    If you only want one layer back, use carp(). And if you want the whole call stack, use cluck(). But if you want anything in between, you need to build it yourself with caller().

    - doug

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2015-08-30 17:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (350 votes), past polls