in reply to how do I swap 2 strings in a file?
while(<ORIG>){ if ($_ eq $string_1) {$string .= $string_2; next;} elsif ($_ eq $string_2) {$string .= $string_1; next;} $string.= $_; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: how do I swap 2 strings in a file?
by TGI (Parson) on May 09, 2001 at 20:45 UTC | |
by srawls (Friar) on May 09, 2001 at 20:51 UTC |