in reply to Re: accessing backreferences
in thread accessing backreferences

No, that's about as wrong as you can get. Don't use eval for that. See the other solutions in this thread for maintainable, workable, speedy, safe solutions.

-- Randal L. Schwartz, Perl hacker