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 ( #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? | Other CB clients
Other Users?
Others pondering the Monastery: (1)
As of 2022-01-17 01:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (50 votes). Check out past polls.

    Notices?