On Tue, 2006-09-05 at 01:33 +0200, Paul Johnson wrote: > Um, that's not quite correct. > > See `perldoc -f split` for details. >
Oh, yes, a special case. I have long ago abandoned special cases since they lead to errors. Note that `perldoc -f split` starts with: split /PATTERN/,EXPR,LIMIT split /PATTERN/,EXPR split /PATTERN/ split Note: no strings. Strings do not work well when used as the pattern for split. But you are correct; a string of a single space will match all whitespace. The difference is that `split /\s+/` will have a null first field if the string has leading spaces and `split ' '` will not. For the OP question, `split ' '` is probable what he wants. -- __END__ Just my 0.00000002 million dollars worth, --- Shawn "For the things we have to learn before we can do them, we learn by doing them." Aristotle * Perl tutorials at http://perlmonks.org/?node=Tutorials * A searchable perldoc is at http://perldoc.perl.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>