Hello, I have a subroutine that is contained within its own module and package. It currently takes 7 different arguments, but only 2 of them are required because I can set defaults for the other 5. Since I anticipate using this module in multiple programs, I'd like to keep the parameter list as generic as possible (in terms of order and requirements). For that reason, I'd like to use the Getopt::Long module to parse the parameter list, but as far as I can tell it will only look at @ARGV. I could simply do a @ARGV = @_, but I'd hate to alter @ARGV without knowing what might still be there.
Does anyone know if Getopt can be pointed to a different array other than @ARGV? I couldn't find anything in the docs or in the archives. I am willing to write my own parser for the argument list (especially since I only have to handle a maximum of 7 parameters), but I'd hate to reinvent the wheel if there is an easier (and more flexible) way of doing it. My other idea was to add the 5 non-required variables to @EXPORT_OK and set them in the calling function before passing the remaining 2 required parameters, but I'd rather not pollute too many namespaces. TIA for any and all ideas! Robert Freimuth, PhD Post-Doctoral Fellow Washington University School of Medicine Department of Internal Medicine Division of Molecular Oncology St. Louis, MO 63110 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]