Front page | perl.perl5.porters |
Postings from October 2014
Context broken in split?
Thread Next
From:
demerphq
Date:
October 23, 2014 11:43
Subject:
Context broken in split?
Message ID:
CANgJU+VFQHdQ5T007DU7qMCpOuTeeBw3nWd+_e6OxAdGvChVng@mail.gmail.com
my $items= () = split /,/, $string;
What should this do? Count the number of items separated by string? Or
return 1?
Why should it behave differently from this:
my $items= () = split /,/, "foo,bar,baz", -1;
Is this a bug?
Yves
--
perl -Mre=debug -e "/just|another|perl|hacker/"
Thread Next
-
Context broken in split?
by demerphq