msstein has asked for the wisdom of the Perl Monks concerning the following question:
Any help would be appreciated. Thanks.
#!/usr/bin/perl use File::Find; open (logfilefsv, '>>logfsv.txt'); $file = "C:/TestPerlFSV/Mark.txt"; open(IN, "+<$file"); #my $old = "N"; #my $new = "M"; @lines=<IN>; print logfilefsv @lines; foreach $file (@lines) {s/N/M/gi;}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Search Replace String Not Working on text file
by zentara (Cardinal) on Jun 16, 2012 at 20:23 UTC | |
|
Re: Search Replace String Not Working on text file
by stevieb (Canon) on Jun 16, 2012 at 20:33 UTC | |
|
Re: Search Replace String Not Working on text file
by Anonymous Monk on Jun 16, 2012 at 22:51 UTC |