I haven't much to say: I'd use Tie::File and List::Util::first.
--
David Serrano
In reply to Re: Problem changing only first occurence of pattern in file
by Hue-Bond
in thread Problem changing only first occurence of pattern in file
by JimJx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |