in reply to Incredibly stupid substitution question :(
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Incredibly stupid substitution question :(
by JavaFan (Canon) on Aug 11, 2010 at 09:03 UTC | |
|
Re^2: Incredibly stupid substitution question :(
by wwe (Friar) on Aug 11, 2010 at 07:50 UTC |