From Waclaw.Marcin.Kusnierczyk at idi.ntnu.no  Thu Aug 21 10:18:12 2008
From: Waclaw.Marcin.Kusnierczyk at idi.ntnu.no (Wacek Kusnierczyk)
Date: Thu, 21 Aug 2008 10:18:12 +0200
Subject: [Rd] strsplit and the empty string
In-Reply-To: <c0177e5a0806180759m75c85c07pd80a5630190e0d7d@mail.gmail.com>
References: <48590370.9040702@idi.ntnu.no>
	<c0177e5a0806180759m75c85c07pd80a5630190e0d7d@mail.gmail.com>
Message-ID: <48AD24C4.5020608@idi.ntnu.no>

Christian Brechb?hler wrote:
>
> I checked Perl, and it does exactly the same:
>   print join "==", split / /, " hello dolly "
> ==hello==dolly
> (that's 3 elements: "", "hello",  and "dolly").
>   
try

perl -e 'print join "==", split " ", " hello dolly "'

;)
vQ



[Rd] strsplit and the empty string
Wacek Kusnierczyk