Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Another question about the split functionby FunkyMonk (Chancellor) |
on Dec 11, 2007 at 23:10 UTC ( [id://656510]=note: print w/replies, xml ) | Need Help?? |
If you're having a problem with split, the official documentation is the first place to look. You can access it...
Any of the links I've posted will also take you there. Anyway, split says (with my emphasis)...
If EXPR is omitted, splits the $_ string. If PATTERN is also omitted, splits on whitespace (after skipping any leading whitespace) and ...
As a special case, specifying a PATTERN of space (' ' ) will split on white space just as split with no arguments doesSo, all you need to do is
In Section
Seekers of Perl Wisdom
|
|