XP is just a number | |
PerlMonks |
Re^3: chooseDirectory set Defaultby olus (Curate) |
on Jul 11, 2008 at 22:23 UTC ( [id://697106]=note: print w/replies, xml ) | Need Help?? |
Sure mate. But this time you gotta promise you will read open's docs :). First point: when you read the file, and since you are adding more lines, you have to get all those lines. Also, you are appending a new line to the end of each conf variable, so there is the need to chomp that new line.
Second point: Writing the info back to the file. I don't know what those browse methods are, but if you need to write in two separate steps, then you'll have to write all the info both times.
As a side note, you should look for a way of being able to write only if any of the paths actually changed.
update lil_v updated his node, so now this doesn't make much sense.
In Section
Seekers of Perl Wisdom
|
|