You can use ref to detect the type of thing you have:
use strict; use warnings; my $array = []; my $hash = {}; print ref $array, "\n"; print ref $hash, "\n";
Prints:
ARRAY HASH
In reply to Re: Error parsing XML
by GrandFather
in thread Error parsing XML
by Hammy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |