Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Better way to read "configuration" files

by zengargoyle (Deacon)
on Mar 03, 2003 at 23:59 UTC ( [id://240196]=note: print w/replies, xml ) Need Help??


in reply to Better way to read "configuration" files

# myprog.config %authinfo = ( user => 'password', user2 => 'password2', ); # end of myprog.config #!/usr/bin/perl # # myprog.pl - configured by file 'myprog.config' use strict; use warnings; our %authinfo; do 'myprog.config'; print "$_:$authinfo{$_}$/" for keys %authinfo;

but recently i've let Config::General handle my configuration needs.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-25 20:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found