#!/usr/bin/perl for (<>) { m!.*?!i ? print "match: " : print "no match: "; print; }