XP is just a number | |
PerlMonks |
Re: Saving application configuration to filesby skx (Parson) |
on Mar 29, 2004 at 11:42 UTC ( [id://340568]=note: print w/replies, xml ) | Need Help?? |
Several people have already made suggestions, but one option that you might not have considered is to use Data::Dumper. This could be used to output a data structure of almost arbitary complexity to a configuration file - and then you could read it back into your script via eval. The drawback of many of these configuration suggestions, and this one, is that when you perform a save you are going to trash any comments/changes a user might have manually made.
In Section
Seekers of Perl Wisdom
|
|