Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
RE: RE: Re: Unexpected Arrayby autark (Friar) |
on Nov 13, 2000 at 23:38 UTC ( [id://41395]=note: print w/replies, xml ) | Need Help?? |
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: The last one will strip all blanks at the start as well as on the end of the string. Autark
In Section
Seekers of Perl Wisdom
|
|