Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Split a string into individual wordsby pzbagel (Chaplain) |
on Feb 06, 2004 at 01:11 UTC ( [id://326956]=note: print w/replies, xml ) | Need Help?? |
Basically, qw() is the wrong construct in your second bit of code. qw() assumes that whatever is in the delimiters is text, not a variable. What you want is split.
Later
In Section
Seekers of Perl Wisdom
|
|