|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re^2: Comapring two values of a scalarby BillKSmith (Monsignor) |
| on Apr 13, 2013 at 17:47 UTC ( [id://1028541]=note: print w/replies, xml ) | Need Help?? |
|
Uner the same assumption, I prefer a regular expression. The Common module will match any valid number. The /e option will do the subtraction. The /r option returns the result without modifying the original string.
Bill
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||