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}};
In reply to Re: Elegant way to dereference an array or hash?
by ikegami
in thread Elegant way to dereference an array or hash?
by danb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |