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

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

Thread Previous
April 2, 2003 19:58
Re: [perl #21765] $s = ""; $n = @a = split(/,/, $s); results in undef $n
Message ID:
On Wed, 2 Apr 2003 21:57:05 +0200, 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

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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About