in reply to Search and Replace
Should you need to the non-oneliner solution, you might want to try the following:
open (INFILE, "<myfile.txt"); open (OUTFILE, "<myfile.txt"); while (my $row = <INFILE>) { $row =~ s/~/\r/g; print OUTFILE $row; } close (INFILE); close (OUTFILE);
Michele.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Search and Replace
by mikevanhoff (Acolyte) on Jun 09, 2003 at 17:43 UTC | |
by iburrell (Chaplain) on Jun 09, 2003 at 21:55 UTC |