my @london = grep { (split /\t/)[$n] =~ /LONDON/ } grep { /LONDON/ } @records; #### perl -e 'print "How sweet does a rose smell? "; chomp ($n = ); $rose = "smells sweet to degree $n"; *other_name = *rose; print "$other_name\n"'