P is for Practical | |
PerlMonks |
Re: Checking value of an extracted variableby roboticus (Chancellor) |
on Dec 23, 2012 at 14:17 UTC ( [id://1010101]=note: print w/replies, xml ) | Need Help?? |
I'd suggest writing a subroutine to read all your configurations into an array, and then when processing the input file you can simply load the current configuration. Something like:
This way, you have all the configurations at your fingertips, and you can process each input entry with a different configuration, if desired. ...roboticus When your only tool is a hammer, all problems look like your thumb.
In Section
Seekers of Perl Wisdom
|
|