Perl Monk, Perl Meditation | |
PerlMonks |
Re: Dump the key value pairs in a hashby choroba (Cardinal) |
on Oct 22, 2021 at 20:21 UTC ( [id://11137900]=note: print w/replies, xml ) | Need Help?? |
$self is a scalar variable, so it's not a hash, it's a reference to a hash. You need to dereference it to get the hash:
Or, use Data::Dumper:
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|