Perl-Sensitive Sunglasses | |
PerlMonks |
testing in perl: main and callerby water (Deacon) |
on Sep 05, 2005 at 01:16 UTC ( [id://489105]=perlquestion: print w/replies, xml ) | Need Help?? |
water has asked for the wisdom of the Perl Monks concerning the following question:
Hi --
chromatic's & ian langworth's most excellent book on perl testing had a tip on how to use caller and a subroutine do_main so that a perl script ("perl foo.pl") could also be loaded in a test script (eq 'use'd or 'require'd) w/o executing, so its subs could be tested. sadly i lent the book away and won't have access to it for a while. could someone assist with that idiom? thanks!
Back to
Seekers of Perl Wisdom
|
|