in reply to how to print values?

I had to read this three or four times before I was convinced this was not a trick question...

printf "%d\n",$VAR->{key2};

Or am I missing something here?


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

Replies are listed 'Best First'.
Re^2: how to print values?
by ikegami (Patriarch) on Sep 15, 2011 at 19:14 UTC
    Maybe he's confused by the bless? bless simply adds an annotation the referenced hash, then returns the reference passed to it. So one still ends up with a hash reference in the OP's example.