develooper Front page | perl.perl6.documentation | Postings from December 2002

Re: String Literals, take 3

Thread Previous | Thread Next
From:
Peter Haworth
Date:
December 10, 2002 10:05
Subject:
Re: String Literals, take 3
Message ID:
PGM.20021210180436.31955.2795@edison.ioppublishing.com
On Thu, 05 Dec 2002 15:17:57 -0500, Joseph F. Ryan wrote:
> Again, C<< "STRING".split(' ') >> is different than
> C<< "STRING".split(/\s+/) >>.  The latter will add an empty element to
> the beginning of the string if there is leading whitespace, which is
> not the behaivor <<>> will have (if it acts like qw(), at any rate.)

I hate this special case. Why is there no way of specifying the removal of
leading empty elements with any other separator string?

-- 
	Peter Haworth	pmh@edison.ioppublishing.com
"[Microsoft is] a potential threat to our nation's economic well-being."
		-- Stanley Sporkin

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About