Subject: | no Access to Attribut named NAME |
WRONG:
<catalog>
<part partnum="1842334" name="High pressure flange" price="24.50" />
<part partnum="9344675" name="Threaded gasket" price="9.25" />
<part partnum="5634896" name="Low voltage washer" price="12.00" />
</catalog>
print $_->{name} foreach(@{$data->{part}});
-----------------------------------------------------------------------
RIGHT:
<catalog>
<part partnum="1842334" other_name="High pressure flange" price="24.50" />
<part partnum="9344675" other_name="Threaded gasket" price="9.25" />
<part partnum="5634896" other_name="Low voltage washer" price="12.00" />
</catalog>
print $_->{other_name} foreach(@{$data->{part}});
I renamed in simple.pm the $name-Variable in $xname and the Bug(?) go away.
My Environment: ActivePerl-5.8.6.811 | Windows Server 2003
René Tuchscherer