use warnings; use strict; my $contents = 'foo®bar'; $contents =~ s/®/\&req;/g; print "contents=:$contents:\n";
prints:
contents=:foo&req;bar:
In reply to Re: matching special char
by toolic
in thread matching special char
by gman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |