The stupid question is the question not asked | |
PerlMonks |
Re: replacing pipe "|"by pfaut (Priest) |
on Mar 26, 2003 at 20:41 UTC ( [id://246075]=note: print w/replies, xml ) | Need Help?? |
The pipe character (|) means alternation inside a regex. It needs to be escaped. Try s/\Q$rem\E/$rep/g.
In Section
Seekers of Perl Wisdom
|
|