in reply to
modifying a line in a file with some restrictions
you can find your answers in
modifying and overwriting a file
Basically you want:
$^I = '.bak';
(inplace editing)
An intellectual is someone whose mind watches itself.
- Albert Camus
Comment on
Re: modifying a line in a file with some restrictions
Download
Code
In Section
Seekers of Perl Wisdom