Not sure whether this is the way it's "supposed to be done", but you could populate @ARGV with the appropriate arguments:
# ... @ARGV = ( '--luckynumber' => 42 ); ok( require 'luckynumber.pl', 'script loaded ok');
In reply to Re: Argument in require statement
by almut
in thread Argument in require statement
by andreas1234567
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |