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

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

Thread Previous
From:
sthoenna
Date:
April 2, 2003 19:58
Subject:
Re: [perl #21765] $s = ""; $n = @a = split(/,/, $s); results in undef $n
Message ID:
Y86i+gzkgCHd092yn@efn.org
On Wed, 2 Apr 2003 21:57:05 +0200, rgarciasuarez@free.fr wrote:
>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).

Hmm.  Looks like the maint split.t needs to catch up with blead...the
#18195 tests are improved in the blead version to actually fail without
the fix :)

Thread Previous


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