I have this piece of code:
But when I try to print out $ref, i'm getting a reference pointer and not a real value. Not quite sure what I'm doing wrong.for ( @$ref ) { $$_[1] =~ s/V|v//g; $$_[2] =~ s/V|v//g; $myhash{$$_[0]}{$$_[1]} ||= []; push (@{$myhash{$$_[0]}{$$_[1]}}, $$_[2]); } foreach my $project ( sort keys %myhash ) { foreach my $rel ( $myhash{$project}) { . . . } }
Any thoughts ?
In reply to Multi-key Hash Table Question by TASdvlper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |