http://www.perlmonks.org?node_id=949344

bdimych has asked for the wisdom of the Perl Monks concerning the following question:

Hi
perl -e 'print ""=~/foo/ and ""=~/bar/'
prints nothing as expected
but
perl -e 'print ""=~/.*/ and ""=~/bar/'
prints 1
imho looks strange
I could not find something in documentation
why so?