my @matches = grep { chomp; /a$/ } ;