# 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.
In reply to Re: Better way to read "configuration" files
by zengargoyle
in thread Better way to read "configuration" files
by LameNerd
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |