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

Re: [MacPerl] Merging elements



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.

I came in late, so I don't know whether tabs were excluded in the problem
statement.

  --John
-- 
John Baxter   jwblist@olympus.net      Port Ludlow, WA, USA

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