Illustrative example:
use strict; use warnings; use Ref::Util 'is_hashref'; use Test::More tests => 2; my %hash; $hash{foo} = 1; $hash{bar} = { baz => 'quux' }; ok is_hashref ($hash{bar}); ok not is_hashref ($hash{foo});
See perlreftut and perldsc.
In reply to Re^3: Value of a key in hash in hex
by hippo
in thread Value of a key in hash in hex
by PSP
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |