• About: I blog about Perl.
  • 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...
Subscribe to feed Recent Actions from stevemadden

  • gonzo commented on On defined(@array) and defined(%hash) 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: ).

    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…

Subscribe to feed Responses to Comments from stevemadden

About is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is hosted by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.