I'm not worthy. My Perl foo is weak.
I'm searching for how to output the name of the module which is currently running without resorting to defining my own strings. ie. something more rigorous than the following feeble attempt:
#!/bin/env perl my $s = "I'm in main!\n"; print $s; package foo; my $s = "I'm in package foo!\n"; print $s;
Is there hope for the unwashed? I humbly thank you for any enlightenment shared.
In reply to finding module name? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |