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
From:
Rafael Garcia-Suarez
Date:
April 2, 2003 11:54
Subject:
Re: [perl #21765] $s = ""; $n = @a = split(/,/, $s); results in undef $n
Message ID:
20030402215705.519ab854.rgarciasuarez@free.fr
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
adjustments).

> 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


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