in reply to Re: @array1 vs @array2
in thread @array1 vs @array2

Using the has above, how would I print $name instead of $id. What exactly does the "MANY" keyword refer to? Many thanks for helping.

Replies are listed 'Best First'.
Re: Re: Re: @array1 vs @array2
by mikfire (Deacon) on Mar 20, 2001 at 06:56 UTC
    I am storing the contents of the second file under the MANY key in the hash. Explore perldoc perldsc for further understanding of the structure I built. It isn't a proper keyword, but, well, it was a word I used as key.

    You can print the name out by changing the $_ in the printf to $keyhash{$_}{NAME}

    mikfire