split limit of 0 ignored #1974
split limit of 0 ignored #1974
Comments
From @pjscott[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' $ perl -MO=Deparse -e '() = split //, $x, 0' $ perl -MO=Deparse -e '() = split //, $x, 2' 5.6.0 and 5.005_03. If this is the correct behavior, perlfunc should be When assigning to a list, if LIMIT is omitted, Perl supplies a |
From @rgsResolved by change #20162. |
@rgs - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#3247 (status was 'resolved')
Searchable as RT3247$
The text was updated successfully, but these errors were encountered: