Is the following code snippet the most efficient implementation?
my %hash my $UL=1000; foreach $a ( 1..$UL ) { foreach $b ( 1..$UL ) { $hash{$a*$b}++; } }
In reply to Populating a hash by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |