On Aug 21, Jennifer Pan said:

>>              $value1 --> @list1
>>              $value2 --> @list2
>> %hash{key} =         $value3 -->@list3
>>              $value4 --> @list4
>>              $value5 --> @list5

Well, you want a reference to an anonymous array [ ... ] that holds
references to other arrays (maybe anonymous, maybe not).

  $hash{key} = [ \@x, \@y, [ 10, 20, 30 ], \@z ];

If you meant you want a hash of array references, that's easier:

  %hash = (
    this => \@foo,
    that => \@bar,
    etc => [ 10, 100, 1000 ],
  );

As for multiple keys of the same name, that's not allowed.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to