http://www.perlmonks.org?node_id=860328


in reply to Pattern Matching issue

hi rookie Monk. What Anonymous monk said was right. after the first match $SetName will be $SetName= MR_P\\2\\3 and after the second match it will be $SetName= MR_PA\\3 so when the third match comes it cannot match it.... Thats why Hi!!1 does not get executed. hoope this will help.