in reply to Lazy config files?
For my config files i use a perl module, then dereference the data structure. It may become difficult to use when scaled excessively, but works well in my situation.
and to use it:Package Attr; use strict; use vars qw(%struct); %struct = ( foo => 'bar'. baz => { blah => 1, } ); 1
#!/usr/bin/perl -w use strict; use Attr; use vars qw(%struct); *struct = \%Attr::struct;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Lazy config files?
by bsb (Priest) on Aug 28, 2003 at 09:20 UTC |
In Section
Seekers of Perl Wisdom