in reply to Get values from anonymous hash?

By the way... if all you are trying to do is get the values from an anonymous hash can be summed up as:

my @ry = values %{ { foo => bar , bing => baz , up=>left }};
Give it a try....


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

Replies are listed 'Best First'.
Re^2: Get values from anonymous hash?
by mseabrook (Beadle) on Aug 17, 2011 at 20:00 UTC
    That is indeed what I'm looking for, thanks. I was missing a curly bracket. I tried,
    values %{map {...}};
    and
    values %{(map {...})};
    but not
    values %{{map {...}}};