Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Handling different sections in config files

by Nitrox (Chaplain)
on May 15, 2003 at 12:26 UTC ( #258365=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    [Section2]
    user1=pass1:50
    user2=pass2:51
    
  2. or download this
    tie my %ini, 'Config::IniFiles', ( -file => "MyConfig.ini" );
    
  3. or download this
    foreach $user (keys %{$ini{'Section2'}}) {
        ($pass, $uid) = split /:/, $ini{'accounts'}{$user};
        #do something with the values here
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2023-06-10 21:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (39 votes). Check out past polls.

    Notices?