Re: Perl: Reference found where even-sized list expected

Christian Boltz <suse-/[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
Hallo Michael, hallo Leute,

Am Mittwoch, 19. Januar 2005 14:58 schrieb Michael Wenger:
> >     %tmphash = $hash{$tmp};
>
> muss so lauten:
>      %tmphash = %{$hash{$tmp}};

Funktioniert :-)

> Erklärung: '$hash{$tmp}' ist nur eine Referenz auf einen Hash. Sie
> muss dereferenziert werden.

Und wieder was gelernt.

Danke!


Gruß

Christian Boltz
-- 
[Fontsammlung] Das verursacht gewisse Probleme im Dateisystem. [...] 
Wenn man bei "find" nicht aufpasst, fliegt ein kleiner Festplatten-
Helikopter zur Tür raus... [Ratti in suse-linux]

-- 
Um die Liste abzubestellen, schicken Sie eine Mail an:
    suse-programming-unsubscribe-IBi9RG/[email protected]
Um eine Liste aller verfügbaren Kommandos zu bekommen, schicken
Sie eine Mail an: suse-programming-help-IBi9RG/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.