stevemadden
Recent Actions
-
Commented on On defined(@array) and defined(%hash)
Hi Reini, hi all, very sorry to jump in that way, but even after reading this articles many times I can't find a way to solve my pb with defined. Most web articles says defined(%hash) is useless but how can...
Comment Threads
-
gonzo commented on
On defined(@array) and defined(%hash)
blogs.perl.org is a blogging platform, no support forum. You should generally consider to ask questions on other platforms, like stackoverflow or perlmonks.
To determine of what type a reference is (in Perl5 all nested data structures consist of references) you need to use the "ref" builtin (see perldoc -f ref or here: http://perldoc.perl.org/functions/ref.html ).
I took the liberty of rewriting your code a bit, so it conforms to recent best practices a little more:
sub dump_hash {
my ($hashn…
About blogs.perl.org
blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.