This way you leave the original string untouched and can modify it 20 different ways from tuesday if needed :)use strict; use warnings; my $string = '123!'; my $new_string = $string =~ s/!/4/r; print "original - $string\nreplacement - $new_string";
In reply to Re: Escaping special characters
by james28909
in thread Escaping special characters
by tiny_monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |