Syntactic Confectionery Delight | |
PerlMonks |
Re^2: How do you place words from a sentence into an array?by pg (Canon) |
on Oct 26, 2004 at 16:25 UTC ( [id://402686]=note: print w/replies, xml ) | Need Help?? |
There is a bug, @words ends up only containing the "words" in the last line ;-) as you are resetting it for each line. Also there was no need for two splits, just one is good enough, and better use strict ;-)
In Section
Seekers of Perl Wisdom
|
|