if (@line_split && $line_split[0] eq "") { # Has empty leading fields } #### if (!@line_split || $line_split[0] eq "") { # Has empty leading fields, or no fields at all }