good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Re: Re: Reading and *writing* configuration filesby tachyon (Chancellor) |
on Apr 09, 2002 at 15:20 UTC ( [id://157749]=note: print w/replies, xml ) | Need Help?? |
Ah that's kinda the idea. You read in the current file and parse it using a parser module. *You* make your changes to this parsed data set. *You* print out the new file from your munged data set. One significant problem with retaining comments is that they are only useful if the are relevant. Comments that relate to parts of the file which have been changed are worse than useless. cheers tachyon s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In Section
Seekers of Perl Wisdom
|
|