>The confusion comes from the poor wording of the perldoc. > > "As a special case, specifying a PATTERN of space (' ') will > split on white space just as "split" with no arguments does. > Thus, "split(' ')" can be used to emulate awk's default > behavior, whereas "split(/ /)" will give you as many null > initial fields as there are leading spaces. A "split" on "/\s+/" > is like a "split(' ')" except that any leading whitespace > produces a null first field. A "split" with no arguments really > does a "split(' ', $_)" internally." > >It doesn't make it clear whether it's really talking about whitespace >(as in \w) or just spaces. > >This is why I avoid using "magic" whenever possible.
Looks like I picked the wrong day to stop sniffing glue. I meant \s, of course. In this case the problem is not with the wording of the doc, but with the confusing array of options. My same conclusion applies. *sheesh* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>