in reply to Using a 'getopt' in module code

How about using the trick of passing in a reference to a hash to hold the arguments? http://www.oreilly.com/catalog/perlbp/chapter/ch09.pdf