in reply to Re^2: Value of a key in hash in hex
in thread Value of a key in hash in hex
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.
|
|---|