Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by roboticus (Chancellor)
on Mar 31, 2010 at 14:32 UTC ( #832055=note: print w/replies, xml ) Need Help??


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

michaelp:

If you simply want to turn undefined elements into an empty string, you could add a step to perform the conversion immediately after the split, like so:

@line_split = map { defined($_) ? $_ : '' } split (/\t/, $line);

...roboticus

  • Comment on Re: "Use of uninitialized value" due to empty elements in an array
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://832055]
help
Chatterbox?
[marto]: last time it was IE6 clients, now they're on 11, so more scope there also, in terms of UI and playback
[marto]: in house as in Company network, not internet connected (power stations and the corporate HQs)
[Discipulus]: new Monsignor party! free beverages and pizza for all you monks! and a big thanks for the patience you deserved me during these years
[marto]: congrats Discipulus
[Discipulus]: only 4k points to sundial's level ..;=)
[Corion]: Yay Discipulus ;)
[Corion]: marto: Ah, so this will be training videos etc., cool!
[choroba]: Congratulations!
[marto]: Corion worse, some plant inspection, cameras moving thru pipes
[marto]: Discipulus yeah, just don't adopt his tactics :P

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2017-07-28 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (425 votes). Check out past polls.