APM: Dereferencing question

Goldilox Goldilox at teachnet.edb.utexas.edu
Wed Nov 27 00:45:30 CST 2002


If I add a pair to a hash (or several pairs in my case) where the value is a
reference to an array:
my %hash;
$key="thislist";
@values=qw(Item1 Item2 Item3);
$hash{$key}=\@values;

how do I dereference @values?

foreach $key(keys %hash){
print "\$key=$key\n";
print "\@values=??\n";
}

I need to associate a list for each key. I am unaccustomed to using references
so feel free to set me straight :0)

Rhett




More information about the Austin mailing list