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


in reply to Re^2: Pattern Matching issue
in thread Pattern Matching issue

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.