Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 surveying the Monastery: (5)
As of 2015-07-05 16:16 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