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
split() with capturing parentheses captures "" instead of undef #4508
Comments
From @mjdominusIf I do @parens = ('-A-B-' =~ /(A)()|(B)()/g); I get @parens = ('A', '', undef, undef However, the behavior for split() is not analogous. @a = split /(A)()|(B)()/, '-A-B-', -1; This should construct @a = ('-', However: use Data::Dumper; Says: # Indentation modified for comparison with example above The elements that should be undefined are instead defined empty strings. Perl Info
|
From [Unknown Contact. See original ticket]
That has been patched for bleadperl. -- |
Migrated from rt.perl.org#7823 (status was 'resolved')
Searchable as RT7823$
The text was updated successfully, but these errors were encountered: