Angerstein wrote:
>
> Hello there,
Hello,
> I have / or want to have an hash of arrays.
>
> @{ $hash{"$key"}}
^ ^
The quotes are not required.
@{ $hash{ $key }}
> And I want to add an value to different fields of the array.
>
> Is this the way it works??????????
> @{ $hash{"$key"}}[0] = "Bastian";
> @{ $hash{"$key"}}[1] = "Ang";
> @{ $hash{"$key"}}[2] = "Next Door";
> @{ $hash{"$key"}}[3] = "to Alice";
>
> Or is that wrong?
@{$hash{$key}} = ( 'Bastian', 'Ang', 'Next Door', 'to Alice' );
Or:
$hash{$key} = [ 'Bastian', 'Ang', 'Next Door', 'to Alice' ];
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]