[Vienna-pm] warum geht {reverse %{$a}}->{pferd} nicht?

Stefan Weiss spaceman at foo.at
Thu Jan 12 07:21:41 PST 2006


Hi.

Sowohl das hier:

> $a={shiva=>'pferd'};
> $b={reverse %{$a}};
> $c=$b->{pferd};

als auch das hier

$a = {shiva=>'pferd'};
$c = {reverse %{$a}}->{pferd};

funktionieren bei mir problemlos, mit oder ohne 'strict' (This is perl,
v5.8.5 built for i586-linux-thread-multi).

Was genau ist das Problem?


cheers,
stefan


More information about the Vienna-pm mailing list