$array = supersplit( $separator, \*DATA); #// not needed here #### @fields = @{ shift( @$array ) }; #### %indici{@fields} = 0..$#fields; #### $item = $array[$row][$indici{$thefield}]; #### $item = fetchit( $row, $thefield ); sub fetchit{ $r = shift; $f = shift; $array[$r][$indici{$f}]; }