one should use something likemy @array = map {int rand 1e6} 1..400000; ... $lookup_table{$_}++ for @array;
in order to save memory requirements. There is no need to have the list of numbers both in an array and in the hash.my %lookup_table = map {int rand 1e6 => 1} 1..400000;
In reply to Re^2: searching through data
by evaluator
in thread searching through data
by baxy77bax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |