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

As for why Data::Dumper is not matching the print statement, I'm stumped.

Because the output of Data::Dumper can be evaled into the original string, hence the "escaping" of the backslashes.

This means that the original string only had single backslashes, otherwise Data::Dumper would have shown 4 backslashes in a row!

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^3: Incredibly stupid substitution question :(
by dasgar (Priest) on Aug 11, 2010 at 15:39 UTC

    Cool! Thanks for the explanation. Learned something new.