Slices of anonymous data structures within hashes/array are
still kicking my butt. This time I've got an anonymous hash within a hash and I'm wondering how to print out a slice of the anonymous hash like so:
print @visits{$key}->{'ip', 'last_time'}; # this doesn't work
print @visits{$key}{'ip', 'last_time'}; # nor this
Out of desperation, I've also tried:
%$visits{$key}{'ip', 'last_time'}
%@visits{$key}{'ip', 'last_time'}
@@visits{$key}{'ip', 'last_time'}
@$visits{$key}{'ip', 'last_time'}
...and the above with an infix operator.
As always, any help for my sorry a** is greatly apprciated. Thanks!
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop";
$nysus = $PM . $MCF;
Click here if you love Perl Monks