in reply to testing a standalone script with parameters

So really the question is how, in that testing script, do I go about passing in those parameters to the main() routine in myScript?
Set @ARGV before you call main(), e.g. @ARGV = ('--files=foo','--output=1')
--
No matter how great and destructive your problems may seem now, remember, you've probably only seen the tip of them. [1]