On Tue, 2003-07-08 at 04:32, Paul Kraus wrote:
> I have a hash like this
> 
> $hash{key}=['item1','item2'];
> 
> Later on I want to push item3 into the array.

The value of the hash element is a 'reference to an array', so you will
need to do something like: 

push(@{$hash{key}}, 'item3');


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

Reply via email to