develooper Front page | perl.perl5.porters | Postings from April 2003

Re: [perl #21765] $s = ""; $n = @a = split(/,/, $s); results in undef $n

Thread Previous | Thread Next
Rafael Garcia-Suarez
April 2, 2003 11:54
Re: [perl #21765] $s = ""; $n = @a = split(/,/, $s); results in undef $n
Message ID:
Yitzchak Scott-Thoennes wrote:
> The code to return undef in this case looks pretty intentional, but
> since that contradicts both the documentation and common sense, I
> think it should be changed to return 0.

Agreed -- thanks, applied to blead as #19135 (with the necessary

> Patch is to maint.  Added eval{} to former last test since that seems
> to be what it expected and I wanted to be able to run the tests to
> completion using a 5.8.0 perl.

Unfounded is not *NIX

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About