Perl Ref is an Array
Mar 04, 2006
if (ref $var eq 'ARRAY') {
    print "It's an ARRAY ref\n";
}
elsif (ref $var eq 'HASH') {
    print "It's a HASH ref\n";
}
⬅︎ PDL Users Worldwide
➡︎ Policy Aware Geospatial Data