Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Getopt::Long with default

by jethro (Monsignor)
on Aug 27, 2012 at 14:09 UTC ( #989992=note: print w/ replies, xml ) Need Help??


in reply to Getopt::Long with default

script --EndDate #outputs: Start = 0 and End = 9999999999

If you just want a default value, just init your variable, i.e.

my $End=999999999; GetOptions( ...

PS: Error descriptions like "my code fails" are not very useful. Please give us a bit more info HOW it is not working next time


Comment on Re: Getopt::Long with default
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2015-07-05 17:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls