in reply to How do I test for a blank line when reading from a file?
while (<>) { print "blank line detected\n" if /^$/; } [download]