in reply to Elegant way to dereference an array or hash?

IIRC, Perl 6 will be @baz = $foo{bar}{baz};. In other words, it will automatically dereference when needed.

In Perl 5, the most compact I can think of is @baz = @{$$foo{bar}{baz}};