The usual (ugly) trick for interpolating subs inside double quotes is:
"@{ [ NEWLINE ] }"
That is, dereference an array ref containing your sub call. It works because strings recognize @.
In reply to Re: substituting constants within regex?
by ForgotPasswordAgain
in thread substituting constants within regex?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |