in reply to "Use of uninitialized value" due to empty elements in an array
orif (@line_split && $line_split[0] eq "") { # Has empty leading fields }
depending on what you want to do if there are no fields at all.if (!@line_split || $line_split[0] eq "") { # Has empty leading fields, or no fields at all }
|
|---|