[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Merging elements



On Fri, Oct 13, 2000 at 07:29:02PM -0700, John W Baxter wrote:
> At 16:39 -0400 10/13/00, Ronald J Kimball wrote:
> >split(' ', $in) is not a simple split.  It is actually the same as
> >split(/\s+/, $in), except that split(' ', $in) will discard a leading null
> >field.  This is a special feature of split, perfect for just this case.
> 
> Except in the presence of tabs in $in, in which case ' ' and \s+ are rather
> different split patterns.

No, they're not.  What are you referring to?

The only difference between split(' ') and split(/\s+/) is that the former
discards a leading null field while the latter does not.

Ronald

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org