in reply to How do I test for a blank line when reading from a file?

print "it's blank" unless /\S/;
(This assumes that a line consisting of only whitespace characters is considered blank.)