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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2017-02-25 05:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (365 votes). Check out past polls.