print "$_\n" for grep {/test$/} @names;