So I need to double all the backslashes.
I would say that you need to use qr// to build Regexp objects. These objects behave essentially like strings in the situations in which you seem to be interested in using them.
Give a man a fish: <%-{-{-{-<
In reply to Re^3: regex compilation
by AnomalousMonk
in thread regex compilation
by morgon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |