To print one of those values in a string, you'd do:$hash{key} = [ 'this', 'that', 'those' ];
print "The 2nd value is $hash{key}[1].\n";
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
In reply to Re: Arrays as Hash Values
by japhy
in thread Arrays as Hash Values
by c
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |