Bernd: Hash / Array Problem

Beitrag lesen

Hallo,
ich habe ein Perl-Problem. Hier estmal der Code:

#!/usr/bin/perl -w
use strict;

my %yy;
my %xx = (x => 5, y => 10);
my @test = ("1","ff",223,"asfd","sg");

$test[1] = {%xx};
%yy = $test[1];

So, jetzt das Problem. ICh will, dass in %xx und %yy identisch sind. Das sind sie aber nicht!! Ich kann mit $test[1] auf den Hash zugreifen, z.B. print $test[1]{x};. Es kommt auch noch folgende Fehlermeldung: "Reference found where even-sized list expected at test.pl line 10."
Woran kann das liegen??

mfg
Bernd