in reply to Re^9: Xpath value query
in thread Xpath value query
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: Xpath value query
by Corion (Patriarch) on Sep 19, 2015 at 14:50 UTC | |
|
Re^11: Xpath value query
by poj (Abbot) on Sep 19, 2015 at 15:07 UTC |