Unfortuantely my @array = map{$_->textContent} $authors->findnodes('./authors/author'); does not do this.
What makes you say that? You don't use @array anywhere else in the code.
You don't use strict or warnings in that code though, and @array is scoped to the for loop. This means that if you try to use it later, perl won't complain about the variable not existing, but the array from inside the loop will have already been deleted.
In reply to Re^3: Return values of tags which have the same name, in an array
by Eily
in thread Return values of tags which have the same name, in an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |