On Mon, 2008-08-18 at 16:03 -0400, ANJAN PURKAYASTHA wrote:
> hi,
> i'm struggling with a hash of arrays problem.
> suppose i create the following HOA:
> $HOA{$key}= [qw(a,b,c,d)];
>
> how do i push an element into the $HOA{$key} array?
>
> tia,
> anjan
>
By de-referencing it:
push @{ $HOA{$key} }, 'e';
See `perldoc perlreftut` and `perldoc perlref` for more details.
--
Just my 0.00000002 million dollars worth,
Shawn
"Where there's duct tape, there's hope."
"Perl is the duct tape of the Internet."
Hassan Schroeder, Sun's first webmaster
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/