Friday, January 11, 2008

can I use $match within regex , sun as / $match ../

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

No comments: