See perlop on m?...? (as opposed to m/.../).
In reply to Re: Why this simple code doesn't work? by Corion in thread Why this simple code doesn't work? by uksza