in reply to Pattern Matching issue

Because
if ($SetName =~ /\\1/)
cannot match
SetName = MR_PA\3
1 and 3 are different

Replies are listed 'Best First'.
Re^2: Pattern Matching issue
by rookie_monk (Novice) on Sep 13, 2010 at 20:23 UTC
    That is odd. The 1st match shouldve replaced "\1". Hmmm
      You have typos. Note how you transit your 'new' variables 3,2,1 not 1,2,3, which would yield your desired result. A debugger would have made this clear. Check out Basic debugging checklist.
        OK, yea I just figured it out. Thanks for the help.. Wouldve took me another hour or soo if you guys didnt pt it out. Thanks...