in reply to returning filename of module used
But I'm sure there are boundary cases where this doesn't quite cut it...package Foo::Bar; sub whence { my $fp = __PACKAGE__; $fp =~ s,::,/,g; $fp .= '.pm'; $main::INC{$fp} }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: returning filename of module used
by Tanktalus (Canon) on May 17, 2005 at 14:31 UTC |