Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Testing a .pl scriptby Monk::Thomas (Friar) |
on Jul 01, 2015 at 14:40 UTC ( [id://1132832]=note: print w/replies, xml ) | Need Help?? |
I guess you're looking for something called a Modulino, e.g.: http://www.drdobbs.com/scripts-as-modules/184416165 The basic idea is to make your script behave as a program when executing and to behave as a package while testing.
In Section
Seekers of Perl Wisdom
|
|