Problems? Is your data what you think it is? | |
PerlMonks |
Re: fastest way to compare numerical strings?by grep (Monsignor) |
on Jun 30, 2008 at 18:12 UTC ( [id://694797]=note: print w/replies, xml ) | Need Help?? |
Just a quick note:
The take the abs value of the difference between the 2 numbers, check if that is greater than .01. That should read cleaner and get rid of most of those checks. Also as a favor for the people trying to read your code - pick a style of indenting. Update: fixed typo and minor edit
grep One dead unjugged rabbit fish later...
In Section
Seekers of Perl Wisdom
|
|