in reply to Get keys from anonymous hashes

I'm guessing you mean a data structure that might be something like:

my $ds = [ { a => 1, b => 2 }, [ qw{ q w e r t y } ], { c => 3, d => 4 }, ];

The keys of the third element can be found with: keys %{$ds->[2]}

If I'm not even close here, please provide an example of the data structure and indicate which keys you're trying to retrieve.

-- Ken

Replies are listed 'Best First'.
Re^2: Get keys from anonymous hashes
by linuxkid (Sexton) on Mar 07, 2012 at 19:04 UTC

    Thanks, that works.

    --linuxkid imrunningoutofideas.co.cc