Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^4: Incredibly stupid substitution question :(

by viffer (Beadle)
on Aug 11, 2010 at 12:04 UTC ( #854339=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://854339]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2022-05-28 07:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (98 votes). Check out past polls.

    Notices?