would be a clever hack in any other language. In Perl its just$array_length = @_; for($i=0;$i<$array_length;$i++){ $j = $i+1; $hash {$_[$i]} = $_[$j]; $i++; }
Impressive, isn't it? ;-)%hash=@_;
In reply to Re: optimize percentile counting in hash
by holli
in thread optimize percentile counting in hash
by max210
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |