I'm not altogether convinced that perl interpolates constant values within a regexp operation ... but I'm sure our (far) more learned monks will put me right in due course ...
What stops you from trying it yourself? That's what I'd do (though I'm not sure which particular flavor of Perl "constant" you mean there, so I won't post code).
In reply to Re^2: calling subroutines within a regular expression?
by chromatic
in thread calling subroutines within a regular expression?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |