#!/usr/local/bin/perl -w while () { chop; print "I have found what I'm looking for: <$_>\n" unless $_ ne "Tom"; }