You need to read perldoc -f open and perldoc perlopentut as it explains all of this. Opening with any form of > clobbers the output, and any form of >> opens in append mode. If you want to update in place you need to use +<.
--
We're looking for people in ATL
In reply to Re^3: Using seek function to write out to top of file?
by Fletch
in thread Using seek function to write out to top of file?
by o2bwise
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |