develooper Front page | perl.perl5.porters | Postings from December 2012

Re: [perl #116086] split "\x20" doesn't work as documented

Thread Previous | Thread Next
From:
Eric Brine
Date:
December 14, 2012 03:31
Subject:
Re: [perl #116086] split "\x20" doesn't work as documented
Message ID:
CALJW-qHQgFweCv95y68xHYxbX9GnRLTHpZ-FPpCS5-3JQ1KXQQ@mail.gmail.com
On Thu, Dec 13, 2012 at 9:37 PM, James E Keenan via RT <
perlbug-followup@perl.org> wrote:

> Nonetheless, these results appear to fail to match the documentation in
> a *different* way from yours, viz., they fail the specification that
> "any leading whitespace in EXPR is removed before splitting occurs."
>

That only applies when you pass a *string* consisting of a space. You are
passing a regex. The document is quite clear about this.

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