in reply to Grep matches all elements if compiled regex is passed as EXPR

grep evaluates an expression, unlike split which matches a pattern. Consider:

use strict; use warnings; my $re = qr/y/; $_ = 'yep'; print /y/; print "\n".$re; print "\n"./$re/;

which prints:

1 (?-xism:y) 1

DWIM is Perl's answer to Gödel