in reply to
Better to use Carp for tracing a call stack than caller.
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().
Results (236 votes),