http://qs321.pair.com?node_id=837142


in reply to Parent Subroutine

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

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