in reply to Re^2: Code asks, in what file do I live?
in thread Code asks, in what file do I live?
Well, if you pass in 0 (caller(0)) then you get the caller information for the current stack frame plus some more information.
my $filename = (caller(0))[1];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Code asks, in what file do I live?
by dave_the_m (Monsignor) on Sep 23, 2004 at 20:46 UTC | |
|