in reply to Getopt::Long

So I tried to pass in one huge string consisting of all the parameters I want ( ie GetOptions( \%myHash, "home=s,instance=s,fileSuffx:s") but that didn't work either (which didn't surprise me).
I think, actually, that all you're missing is that the parameter descriptions must be an array (not just a big string run together with commas). Try this:
GetOptions( \%myHash, "home=s", "instance=s", "fileSuffx=s")
Enjoy.
------------ :Wq Not an editor command: Wq

Replies are listed 'Best First'.
Re: Re: Getopt::Long
by david.shin (Initiate) on Jun 01, 2004 at 13:56 UTC
    Thanks a lot!! This is exactly what I needed, although I think I should of figured that out myself (<== perl noob). Live 'n learn.