Hello: I am trying to create and access a multidimensional hash.
For example the following works ====== $route {$routeDest} = $cost ; print "$routeDest, Cost: $route{$routeDest}\n" =====
But the following does not print the $route{$NODE}{$routeDest} ========== $route {$NODE}{$routeDest} = $cost; print "$route on $NODE cost: $route{$NODE}{$routeDest}; ========== What am I doing wrong here?
Try something like:
$route{$NODE} = { }; # set node to contain a hash reference $route{$NODE}{$routeDest} = $cost; # then use
Does that help?
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]