Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Configuration file design

by pelagic (Priest)
on Jan 04, 2005 at 09:54 UTC ( #419196=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    [one_server]
    save_dir = /var/spool/bla/files
    ...
    dir = /var/spool/quatsch/bla/save
    glob = .
    archive = quatsch.bla.save.tar.gz
    
  2. or download this
    my $cfg = Config::IniFiles->new( -file => "./$p_cfgfile" );
    foreach my $group ($cfg->Groups) {
    ...
            ##  do something with: $cfg->val($member, 'archive');
        }
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2019-06-17 10:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (78 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!