Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: GetOptions Function NOT Assign CLI Args to Variables?

by frozenwithjoy (Priest)
on Oct 12, 2012 at 18:08 UTC ( #998762=note: print w/replies, xml ) Need Help??

in reply to GetOptions Function NOT Assign CLI Args to Variables?

You need to tell Getopt what options your are assigning using single or double dashes (-option or --option). Run it like this:

./ --ipAddr --server

The output I get from running it this way:

@ARGV: "--ipAddr --server" GETTING OPTIONS... IP Address = SERVER Address =

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://998762]
[jdporter]: I for one think it's kind of ridiculous that people can't ask - here - other people for help just because it involves monetary compensation.
[jdporter]: I think the test for whether to push it to should be strict: (a) you're looking for employment, or (b) you're looking to hire an employee or contractor.

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2017-03-23 01:09 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (278 votes). Check out past polls.