Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Pattern Matching issue

by Anonymous Monk
on Sep 13, 2010 at 19:59 UTC ( #860022=note: print w/replies, xml ) Need Help??

in reply to Pattern Matching issue

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...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2023-02-05 10:58 GMT
Find Nodes?
    Voting Booth?
    I prefer not to run the latest version of Perl because:

    Results (31 votes). Check out past polls.