This printsuse Data::Dumper; sub callstack { return caller(); } print Dumper(callstack());
Var1 is the calling package (in this case main) Var2 is the calling file Var3 is the line where it was called$VAR1 = 'main'; $VAR2 = 'foo.pl'; $VAR3 = 9;
In reply to Re: Filename of current package
by amw1
in thread Filename of current package
by jaa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |