- or download this
use strict;
use warnings;
...
print "aref is a href\n";
my %hash = %$aref;
}
- or download this
if ( eval { my $foo = %$aref; 1 } ) {
print "aref is a href\n";
my %hash = %$aref;
}
- or download this
Pseudo-hashes are deprecated
- or download this
sub isa_hash {
no warnings 'void';
...
return 1 if eval { @$arr; 1 };
return;
}
- or download this
if ( eval { 1 + %$possible_href } ) {
return 1;
}