in reply to Correct syntax to access an array slice within a hash within a hash

Dereference that suckah
my $table = { foo => { bar => [qw(one two three four five)] } }; print join(" - ", @{$table->{foo}->{bar}}[2..4]); __output__ three - four - five
More info at perlref
HTH

_________
broquaint

  • Comment on Re: Correct syntax to access an array slice within a hash within a hash
  • Download Code