http://www.perlmonks.org?node_id=41392


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.