You can not add/delete data from a file (all you can do is overwrite bytes).
So if you want to delete from the original file, then you have to re-write it...
Update: Great, getting downvoted. Thank you. All I was trying to do was trying to explain that in order to modify the file the file should be re-writed. which is exactly what Tie::File does! I'll guess I should stop posting.
In reply to Re: print lines from a file
by Animator
in thread print lines from a file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |