TASdvlper has asked for the wisdom of the Perl Monks concerning the following question:
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 ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Multi-key Hash Table Question
by japhy (Canon) on Jul 28, 2005 at 17:00 UTC | |
|
Re: Multi-key Hash Table Question
by Codon (Friar) on Jul 28, 2005 at 21:49 UTC |