Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Dual personality: Module and scriptby TomDLux (Vicar) |
on Aug 04, 2004 at 02:30 UTC ( [id://379879]=note: print w/replies, xml ) | Need Help?? |
I too have occassionally hidden test code in my modules, though not as cleanly as BrowserUK In the fine tradition of TMTOWTDI, note that $0 doesn't change, but __FILE does, as you go from x.pl to x.pm, whether by 'use' or by 'require'. --
In Section
Seekers of Perl Wisdom
|
|