in reply to Argument in require statement

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');