Thanks to the Damian for this one!use IO::InSitu; my ( $src, $dest ) = open_rw( 'my_file', 'my_file' ); while ( my $line = <$src> ) { # If this is the line you want to modify # Call a routine to modify either the minor or # major version, depending on the case in question # by modifying $line print {$dest} $line; }
In reply to Re: Modifying File Contents
by HuckinFappy
in thread Modifying File Contents
by ramthen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |