Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Test automationby Eily (Monsignor) |
on Jul 01, 2015 at 14:38 UTC ( [id://1132831]=note: print w/replies, xml ) | Need Help?? |
You can do something like this: This way the main sub will be called only if the script is called directly and not if it is included in a test through require "script.pl".
In Section
Seekers of Perl Wisdom
|
|