for my $element (@array) { my @bits = split "\t", $element; #do something with the bits. } #### for my $index (0 .. $#array) { # $#array is the numer of the highest element. my @bits = split "\t", $array[$index]; }