philosophia has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to replace || with |\N| in a text file. I'm using
open (IN, $filename);
while (<IN>){
s/||/|\\N|/;
print IN;
}
close IN;
It doesn't seem to be working. It seems to be replacing || with |N|. How can I fix this?
open (IN, $filename);
while (<IN>){
s/||/|\\N|/;
print IN;
}
close IN;
It doesn't seem to be working. It seems to be replacing || with |N|. How can I fix this?
Back to
Seekers of Perl Wisdom