use strict; use warnings; my $re = qr/y/; $_ = 'yep'; print /y/; print "\n".$re; print "\n"./$re/; #### 1 (?-xism:y) 1