in reply to Re: Multidimensional Hash implementation/usage
in thread Multidimensional Hash implementation/usage
my $idx = substr $Fld57, 3, 5; $CNT{$idx . $Fld1 . $Fld15}++; $COST{$idx . $Fld1 . $Fld15} += $Fld14;
Actually, Perl offers some syntactic sugar just for that:
$foo{$a, $b, $c} is equivalent to $foo{join($;, $a, $b, $c)}
It is documented in perlvar.
|
|---|