Though, your regex $text =~ s/\./\\./g; seems to can work fine!.use strict; use warnings; my $string = "Kev.has.a.stupid.perl.question"; my @array = split /\./, $string; my $fixed = join('\.',@array); print $fixed;
update: added links and a bit of details
In reply to Re: Incredibly stupid substitution question :(
by biohisham
in thread Incredibly stupid substitution question :(
by viffer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |