Problems? Is your data what you think it is? | |
PerlMonks |
Re: My preferred way of handling config data in Perl is:by lovekumar (Initiate) |
on Dec 20, 2006 at 09:46 UTC ( [id://590872]=note: print w/replies, xml ) | Need Help?? |
I would make a .pm file let say Config.pm, store my config in form of Data Structure let say $CONFIG and export this var to other modules.
require Exporter;
use vars qw/ @EXPORT/;
@EXPORT = qw/$CONFIG/;
do something with $CONFIG now.
In Section
Past Polls
|
|