In your working example, you deal with the loop variable $image. The non-working example sets up the same variable, but pushes a reference to %image, which is not the same and is never populated. Change to push @image_array, $image; or, more simply, replace the whole loop with my @image_array = $tree->look_down("_tag", "img");
After Compline,
Zaxo
In reply to Re: problems constructing an array of hashes
by Zaxo
in thread problems constructing an array of hashes
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |