Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

RE: RE: Re: Unexpected Array

by Fastolfe (Vicar)
on Nov 13, 2000 at 23:35 UTC ( #41392=note: print w/ replies, xml ) Need Help??


in reply to RE: Re: Unexpected Array
in thread Unexpected Array

It would help if we could see the contents of a sample line. I suspect it looks like this:

some stuff some more stuff
with a bunch of spaces. You are splitting on / /, which is a single space, which means you are going to get a lot of empty elements in your resulting list. You probably want to change your split statement to split on /\s+/, which will catch all whitespace between elements.


Comment on RE: RE: Re: Unexpected Array
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2014-12-21 09:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (104 votes), past polls