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

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

Thread Previous | Thread Next
Eric Brine
December 14, 2012 03:31
Re: [perl #116086] split "\x20" doesn't work as documented
Message ID:
On Thu, Dec 13, 2012 at 9:37 PM, James E Keenan via RT <> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About