laziness, impatience, and hubris | |
PerlMonks |
Re: split every second wordby duff (Parson) |
on Dec 05, 2003 at 00:21 UTC ( [id://312389]=note: print w/replies, xml ) | Need Help?? |
Not that it helps your particular problem (besides, I think you've been adequately answered), but this would be easy to implement using perl 6 in terms similar to how you framed your question:
I.e., split the $string on each 2nd occurence of one or more whitespace characters.
In Section
Seekers of Perl Wisdom
|
|