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'

Replies are listed 'Best First'.
Re^5: Incredibly stupid substitution question :(
by roboticus (Chancellor) on Aug 11, 2010 at 14:35 UTC

    viffer:

    Interesting ... I've never noticed that the x command and the p command give different results for a string in the debugger. A quick browse of perldebug didn't give me any obvious hints...

    ...roboticus