in reply to Re: Perl bug or feature?
in thread Perl bug or feature?

Actually, the empty regexp, // is special. See perlre, resp. perlop.
say "foo" =~ /oo/ ? "MATCH" : "NO MATCH"; say "bar" =~ // ? "MATCH" : "NO MATCH"; MATCH NO MATCH
An empty pattern repeats the last successful match.