to this:$one_program_name = $programs->{NAME}->[0];
$one_program_name = $programs->{NAME};
NAME is an attribute and there can be only one, so it isn't an array reference.
bobf did this, but didn't note it in his response.
In reply to Re^2: Problem handling array from XML stream
by Thelonius
in thread Problem handling array from XML stream
by Hammy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |