![]() |
|
Welcome to the Monastery | |
PerlMonks |
Re^2: Problem with String replace in fileby philosophia (Sexton) |
on Oct 22, 2007 at 17:36 UTC ( #646510=note: print w/replies, xml ) | Need Help?? |
if I use
s/\|(?=\|)/|\\N/g; s/^\|/\\N|/; s/\|$/|\\N/g; it replaces || with ||. The \N seems to be an invisible newline character, and I want it to just be '\N'.
In Section
Seekers of Perl Wisdom
|
|