texuser74 has asked for the wisdom of the Perl Monks concerning the following question:
Please advise how to add $1 and $2, i am getting the string "$1+$2" instead of its total.s!total of (.*?) and (.*?)\n!total is $1+$2\n!g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: addition in regular expressions
by ysth (Canon) on Dec 13, 2007 at 09:33 UTC | |
by texuser74 (Monk) on Dec 13, 2007 at 09:38 UTC | |
|
Re: addition in regular expressions
by moritz (Cardinal) on Dec 13, 2007 at 09:25 UTC |