http://qs321.pair.com?node_id=41395


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

It seems to me that you want to create an array containing the words of the file. If you split on space like you have done split / /, $item, then you will only split on one space. I think you want to split on:
split /\s+/, $item
or just:
split ' ', $item
The last one will strip all blanks at the start as well as on the end of the string.

Autark