in reply to Re: Splitting each word in a string
in thread Splitting each word in a string
I said "sort of", meaning that the default case (that is, no arguments to split) trailing empty fields are removed - just like in awk. Which doesn't happen if you use /\s+/ as first argument. Use ' ' to get the effect of the default behaviour.
You know, you would have saved a lot of trouble, from both you and me (and people who thought you spoke the truth and used your suggestion) if you had either tried out your suggestion or had consulted the manual page. But I guess a quick typing without thinking is the fast lane to fame.
-- Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Splitting each word in a string
by tye (Sage) on Jun 27, 2001 at 03:40 UTC | |
|
Re: Re: Splitting each word in a string
by IraTarball (Monk) on Jun 27, 2001 at 01:21 UTC | |
by Abigail (Deacon) on Jun 27, 2001 at 01:59 UTC |