Skip Menu |
Report information
Id: 3247
Status: resolved
Priority: 0/
Queue: perl5

Owner: Nobody
Requestors: Peter [at] PSDT.com
Cc:
AdminCc:

Operating System: generic
PatchStatus: (no value)
Severity: low
Type: notabug
Perl Version: (no value)
Fixed In: (no value)



Date: Mon, 15 May 2000 09:46:20 -0700
To: perlbug [...] perl.org
From: Peter Scott <Peter [...] PSDT.com>
Subject: split limit of 0 ignored
Download (untitled) / with headers
text/plain 701b
[This seemed to drop into a black hole the first 2 times I sent it...] Looks like a split LIMIT of 0 is treated like it's not there: $ perl -MO=Deparse -e '() = split //, $x, 1' () = split(//, $x, 1); $ perl -MO=Deparse -e '() = split //, $x, 0' () = split(//, $x, 1); $ perl -MO=Deparse -e '() = split //, $x, 2' () = split(//, $x, 2); 5.6.0 and 5.005_03. If this is the correct behavior, perlfunc should be changed from When assigning to a list, if LIMIT is omitted, Perl supplies a LIMIT one larger than the number of variables in the list to When assigning to a list, if LIMIT is omitted or 0, Perl supplies a LIMIT one larger than the number of variables in the list
Resolved by change #20162.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org