in reply to Line number in a file
while (<FILE>) { if (/what not/) { print "We found what not in line $.\n"; } } [download]