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:
or just:split /\s+/, $item
The last one will strip all blanks at the start as well as on the end of the string.split ' ', $item
Autark
|
---|
In Section
Seekers of Perl Wisdom