Keep It Simple, Stupid | |
PerlMonks |
Re: the best way to separate a string into words (contractions)by tye (Sage) |
on Jan 20, 2009 at 02:11 UTC ( [id://737454]=note: print w/replies, xml ) | Need Help?? |
For one definition of "split" and "words", I'd use:
Which would give you words like qw( split and words I'd use ) not like qw( "split" and "words", ) nor like qw( words I d use ). Update: Or even, allow hyphenated-word capturing:
- tye
In Section
Seekers of Perl Wisdom
|
|