in reply to Error parsing XML
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Error parsing XML
by Hammy (Scribe) on Mar 01, 2006 at 04:31 UTC | |
Re^2: Error parsing XML
by grantm (Parson) on Mar 02, 2006 at 07:53 UTC |