Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: "Use of uninitialized value" due to empty elements in an array

by JavaFan (Canon)
on Mar 31, 2010 at 15:06 UTC ( #832070=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://832070]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2014-09-22 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (182 votes), past polls