http://www.perlmonks.org?node_id=854339


in reply to Re^3: Incredibly stupid substitution question :(
in thread Incredibly stupid substitution question :(

using x $text rather than print $text
ie
my $text = "Kev.has.a.stupid.perl.question"; DB<1> x $text 0 'Kev.has.a.stupid.perl.question' $text =~ s/\./\\./g; DB<2> x $text 0 'Kev\\.has\\.a\\.stupid\\.perl\\.question'