Help for this page

Select Code to Download


  1. or download this
    my %entry = ($item_id=>\@data, $item_id=>\@data);
    print $entry{$i}->[$j]; # contents of the hash ({}) are array referenc
    +es; we use -> to work with references; then we use [] to work with ar
    +rays
    ...
    # secondly, hash contents are accessed using {}
    # thirdly, it's again a reference
    # fourthly, arrays are accessed using []
    
  2. or download this
    my $index = $#{$entry{$i}};