in reply to How do I print an array of hashes containing an array

If you just want to print the contents of the arrayref (and the contents of that array are all simple data types), you only need to deref it:

print join(', ', @{$lookup[0]{'TRAPS'}->{'TRAP_LIST'}})."\n";

If you want to print the entire contents of a deep structure, check out Data::Dumper.

Replies are listed 'Best First'.
Re: Re: How do I print an array of hashes containing an array
by Anonymous Monk on Feb 18, 2003 at 16:02 UTC
    This is my problem.
    When running your code I get:
    HASH(0x22cad04), HASH(0x22caac4), HASH(0x22caa88), HASH(0x22c6928)

      Then use Data::Dumper to set a better look at that's actually going in to the ref, then go from there.

      Check out perldsc if you haven't already. Good luck to you.

      John J Reiser
      newrisedesigns.com

        Thanks guys,
        I got it, I always forget about Data::Dumper.
        Thanks again