New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return the empty list on non-positive LIMIT #357
Comments
From cdavaz@gmail.comHere is a small patch to make split return the empty list on |
From cdavaz@gmail.comany-str.pir.diffIndex: src/builtins/any-str.pir
===================================================================
--- src/builtins/any-str.pir (revision 31687)
+++ src/builtins/any-str.pir (working copy)
@@ -411,8 +411,7 @@
# per Perl 5's negative LIMIT behavior
unless has_count goto positive_count
- unless count < 1 goto positive_count
- has_count = 0
+ if count < 1 goto done
positive_count:
match = regex($S0)
|
From @moritzOn Sun Oct 05 20:43:05 2008, cdavaz wrote:
Thanks, applied as r31714.
I don't think it's possible in PIR, so we'll wait for the time when Moritz |
The RT System itself - Status changed from 'new' to 'open' |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#59642 (status was 'resolved')
Searchable as RT59642$
The text was updated successfully, but these errors were encountered: