Dear Monks
Is there a special var or some other way that tells me the filename of the current module?
I want to do something like:
my $package = __PACKAGE_FILENAME__; my $related = $package; $related =~ s/this.pm/other.pm/; if ( -e $related ) { require $related; else { die "related package missing: $related"; }
Thanks!
Jeff
In reply to Filename of current package by jaa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |