while (local $_ = match('a')) { print "- $_\n"; } #### print "- $_\n" for grep {/a/} @data;