123 $_ = "beforematcha? fter"; 124 if(/w+a/){ 125 print "matched: <$`><$&><$'>| "; 126 }
if(/a/) 这样的模式匹配也行,是单词边界锚点,即以a结尾的单词都可以匹配到