# match a line that only contains one or more whitespace if ($line =~ /^\s+$/) {