Try adding braces, like this:
%x = ( abc => { ip => v1.2.3.4, last_time => 'today' }, def => { ip => v5.6.7.8, last_time => 'yesterday ' }, ); @y = @{$x{def}}{'last_time', 'ip'};
In reply to Re: Printing slice of anonymous hash within hash
by ariels
in thread Printing slice of anonymous hash within hash
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |