Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Getopt::Long

by etcshadow (Priest)
on May 29, 2004 at 02:12 UTC ( [id://357404]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://357404]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-23 20:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found