in reply to (Ovid) Re: regex and multiplication
in thread regex and multiplication

You should quote the parts of the replacement you don't want executed:

s/WORD\s(\d+)/"WORD ".(2*$1)/e;

Or, how I'd write it:

s/(WORD\s)(\d+)/$1.(2*$2)/e;
        - tye (but my friends call me "Tye")