OK, so one more problem I don't understand.. and I think it's more my lack of understanding about HASHES. I was getting an error on the my $value = $nodes[0]->text; statement indicating Can't call method "text" on an undefined. So, I thought I could use if (@node[0]) { my $value = $nodes[0]->text; } else { $value = "EMPTY_STRING"; } but now everything comes back as if the variable is undefined. How do I determine if a hash is undefined?
In reply to Re^10: Xpath value query
by SDwerner
in thread Xpath value query
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |