arunhorne has asked for the wisdom of the Perl Monks concerning the following question:
Monks
I want to create hash that maps a single key to multiple values. My current way of doing this is to use and array reference:
my %hash = ("key"=>["value1","value2"]);
However, I was wondering if anyone knows of a module that provides this sort of behaviour whilst abstracting the specifics of creating array refs etc?
____________
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Multiple Hash Keys Module
by Zaxo (Archbishop) on May 23, 2003 at 14:36 UTC | |
Re: Multiple Hash Keys Module
by artist (Parson) on May 23, 2003 at 15:08 UTC | |
Re: Multiple Hash Keys Module
by arthas (Hermit) on May 23, 2003 at 15:06 UTC | |
Re: Multiple Hash Keys Module
by gmpassos (Priest) on May 23, 2003 at 16:28 UTC | |
Re: Multiple Hash Keys Module
by arunhorne (Pilgrim) on May 27, 2003 at 11:50 UTC |