See perlop for details. Also note that $1 should be used instead of \1 in the substitution part of a regex.
Update: oops, missed the actual /e in the example - bellaire++
In reply to Re: Call subroutines inside regexp, using backrefences as parameters
by moritz
in thread Call subroutines inside regexp, using backrefences as parameters
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |