See perlre for details.$var =~ s/WORD\s(\d+)/"WORD " . (2 * $1)/e;
Cheers,
Ovid
Update: Fixed post in response to tye's clarification.
Join the Perlmonks Setiathome Group or just go the the link and check out our stats.
In reply to (Ovid) Re: regex and multiplication
by Ovid
in thread regex and multiplication
by elwarren
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |