-
Notifications
You must be signed in to change notification settings - Fork 578
Bug in split, when EXPRESSION only contains PATTERN #6931
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
Comments
From [email protected]split / /; (or split /a/; , or similar) produces the empty list if The documentation on split says the following: For some test cases please see test program below. This bug exists for a long time (I think at least in early 5.6.1) and still ###################### start test program ############################### Dr. Wolf-Dietrich Moeller |
From [email protected]On Nov 17, Moeller Wolf-Dietrich said:
The documentation also says: If LIMIT is specified and positive, splits into no more than that Therefore, split(/a/, "aaa", -1) would return ("", "", "", ""), but -- |
@rgs - Status changed from 'new' to 'resolved' |
Migrated from rt.perl.org#24507 (status was 'resolved')
Searchable as RT24507$
The text was updated successfully, but these errors were encountered: