in reply to regex and multiplication
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: regex and multiplication
by tye (Sage) on Sep 21, 2000 at 20:27 UTC |