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

(RhetTbull) Re: Prioritizing command line options

by RhetTbull (Curate)
on Jan 19, 2002 at 02:52 UTC ( #139980=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use ConfigIni; #my own wrapper
    use Getopt::Long;
    ...
    
    #now %config holds all your parameters and they're properly initialize
    +d -- the command line overrides anything in the ini file
    
  2. or download this
    sub get_options
    {
    ...
        croak "Password must be specified in [General] ini file" if !defin
    +ed $config->{password};
        croak "Data_dir must be specified in [General] section of ini file
    +" if !defined $config->{data_dir};
    } #sub init_config
    
  3. or download this
    package ConfigIni;
    
    ...
    }
    
    1;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2014-12-26 00:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (163 votes), past polls