caller(0) returns info about _format_caller's caller.
caller(1) returns info about f's caller
caller(2) would return info about the main program's caller, but that's no longer in Perl. What are you expecting it to return?
In reply to Re^3: caller() mystery
by ikegami
in thread caller() mystery
by rovf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |