in reply to Re^4: putting text into array word by word
in thread putting text into array word by word
OK, now that's solved, let's look at the definition of 'word' (yes, things are going to get hairy...). Take this sentence, for example:
"No, he said."
The 'words' that your current code would extract are:
"No, he said."
Is that really what you want? Or would you prefer:
No # or, better, 'no' he said
?
In Section
Seekers of Perl Wisdom