I find it interesting that you think this code sample actually writes data back to the file. Is there a part of the code you are not including?
If that is the case, you may not realize that localizing $WW means that you lose the value of that variable when you leave the current scope (go beyond the encapsulating closing curly bracket).
If you really intend to save the data back to the original file, you have a lot more work ahead of you. This code will have a number of pitfalls, including dropping the changed value before you write it, or writing to a file you are reading from before finishing the initial processing of the original contents.
Messy!
In reply to Re^3: replace in lines
by snopal
in thread replace in lines
by pglinx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |