in reply to A silly reg exp question

You might want to take a look at the /e modifier for regular expressions in perlre.

Replies are listed 'Best First'.
Re^2: A silly reg exp question
by chessgui (Scribe) on Jan 16, 2012 at 15:01 UTC
    In perlre the 'e' modifier is not explained. You should have directed me to perlop. Now it is clear that /e rather than replacing the match with a string it replaces it with an (e)xpression evaluated.