in reply to Parsing XML
$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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Parsing XML
by grantm (Parson) on Nov 26, 2002 at 19:57 UTC |