Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

GetOptions Function NOT Assign CLI Args to Variables?

by mmartin (Monk)
on Oct 12, 2012 at 18:03 UTC ( [id://998761]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    print BOLD "SERVER Address = " . RESET "$srv_address\n";
    
    exit 0;
    
  2. or download this
    @ARGV: "ipAddr=192.168.5.196 server=192.168.5.1"
    
    ...
    IP Address =
    Use of uninitialized value $srv_address in concatenation (.) or string
    + at ./test_diff.pl line 26.
    SRV Address =
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (8)
As of 2024-04-23 12:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found