Try Tie::File. This can do everything you want. The doco has quite a few examples and here's a thread from yesterday with some more example code.
-- Ken
In reply to Re: Perl File update
by kcott
in thread Perl File update
by kpofcochin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |