Building a pattern at run-time by interpolating a variable into a pattern. Yes, you can interpolate a variable such as $match into a pattern; you'll generally want the qr// operator to quote the pieces you use to make $match.
http://perldoc.perl.org/perlop.html#Regexp-Quote-Like-Operators
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment