On Wed, Aug 08, 2001 at 12:20:35PM +0000, Mel Matsuoka wrote:
> %hash = (
> joe => "smith",
> jim => ["jones", "taylor"],
> sof => "comes",
> );
This data structure would require extra checks of the values (i.e.
ref($hash{'joe'}) eq 'ARRAY' ? $hash{'joe'}[0] : $hash{'joe'}) each time you
do a lookup. To simplify access it should probably look more like:
%hash = (
joe => ['smith'],
jim => ['jones', 'taylor'],
sof => ['comes'],
);
References and complex data structures are covered in perldoc perlreftut,
perldoc perlref, perldoc perldata, perldoc perllol, and perldoc perldsc.
Michael
--
Administrator www.shoebox.net
Programmer, System Administrator www.gallanttech.com
--
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]