At 02:28 PM 6/30/05 -0500, Joe Discenza wrote:
>Regex is pretty fast. Eval is usually pretty slow.
Yeah ur right about the eval. I did a triple head to head with ur regex and
eval/no eval. The eq without the eval demolishes all.
Rate eval RE noeval
eval 3397/s -- -87% -96% eval "$var" eq $var + 0;
RE 25253/s 643% -- -72% /^[-+]?(\d+(\.\d*)?|\.\d+)([eE][-+]?\d+)?$/
noeval 90909/s 2576% 260% -- $var eq $var + 0;
--
REMEMBER THE WORLD TRADE CENTER ---=< WTC 911 >=--
"...ne cede males"
00000100
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs