> my $target = 42;
I think using a fixed number if some routines use a linear search might not lead to accurate results.
But I have to admit, I don't know yet how to best combine a random $target with Benchmark
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^2: Comparing a value to a list of numbers
by LanX
in thread Comparing a value to a list of numbers
by g_speran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |