$xml->isa('HASH') will not work if $xml is not blessed, so if it is a hash ref or an array ref you won't be able to use this syntax. You have to use UNIVERSAL::isa( $xml, 'HASH') instead, calling isa as a regular sub.
Update: you might also be better off using a higher-level module like XML::Simple, which will put the data into a nice Perl data structure for you.
In reply to Re: Parsing XML
by mirod
in thread Parsing XML
by hotshot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |