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!
In reply to testing in perl: main and caller by water
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |