Problems? Is your data what you think it is? | |
PerlMonks |
Re: Dual personality: Module and scriptby bgreenlee (Friar) |
on Aug 03, 2004 at 15:23 UTC ( [id://379698]=note: print w/replies, xml ) | Need Help?? |
You could also check the value of $0. If your module is executed rather than imported, it will return the name of the module. Otherwise it will return the name of the script that imported it. Brad
In Section
Seekers of Perl Wisdom
|
|