And what happens if $find happens to contain \E?
#!/usr/bin/perl -l $_ = "\\E"; print; print qr(\Q$_\E); __END__ \E (?-xism:\\E)
Looks as if it does what it should.
In reply to Re: Does s/\Q$find\E/$replace/g really a plain string replace ?
by !1
in thread Does s/\Q$find\E/$replace/g really a plain string replace ?
by MSoegtrop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |