/(a)/; print "matched $1\n"; # WRONG! if (/(a)/) { print "matched $1\n"; # Right }