in reply to regex search and replace issue

Assignment operator = is not the same as binding operator =~

If you want to make matches, or substitutions, on $variable, you need to use binding operator

Replies are listed 'Best First'.
Re^2: regex search and replace issue
by jonnyfolk (Vicar) on Nov 11, 2011 at 11:40 UTC
    oh, I'm as careless as careless can be. Thanks to all for pointing it out and helpful suggestions
      Perl can help prevent you from being careless... if you use strict and warnings. You would have gotten a warning message which would have pointed you to the offending lines.