-
Notifications
You must be signed in to change notification settings - Fork 560
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
Undocumented change of UTF-8 delimiters to substitution #15744
Comments
From @chorobaCreated by @chorobaOne can use non-ASCII characters as delimiters in s///, but their ~ $ perl -v This is perl 5, version 18, subversion 2 (v5.18.2) built for Copyright 1987-2013, Larry Wall Perl may be copied only under the terms of either the Artistic License or the Complete documentation for Perl, including FAQ lists, should be found on ~ $ perl -Mutf8 -wE 'say "a" =~ s¦a¦A¦r' I haven't found this change documented in any delta. Ch. Perl Info
|
From @jkeenanOn Fri, 02 Dec 2016 10:35:23 GMT, choroba@cpan.org wrote:
[snip]
Behaviour confirmed. With respect to major versions, the change appeared in 5.20.
Correct. The actual change in behavior was introduced in: ##### [perl #120463] s/// and tr/// with wide delimiters Observe: ##### $ ./perl -v | head -2 | tail -1 In pod/perldelta5200.pod, we have: ##### ... but we don't have any mention of the fact that the "double-the-delimiter" technique was no longer necessary. We were only focusing on "wide characters". I'm not sure that we need to document the non-necessity of "double-the-delimiter" going forward. I'm also not sure what our policy is on retrospectively correcting perldeltas for major versions that are out of support. List: thoughts? Thank you very much. -- |
The RT System itself - Status changed from 'new' to 'open' |
From @tonycozOn Fri, 02 Dec 2016 06:23:20 -0800, jkeenan wrote:
The "double the delimiter" trick is a work-around for a bug that e68dd03 fixed. Per the commit message, you don't actually need to double the delimiter - you could have used a different delimiter instead. The delta could be changed to describe the previous misbehaviour, but I don't think it's necessary since the ticket already describes that. Tony |
From @jkeenanOn Mon, 05 Dec 2016 03:50:08 GMT, tonyc wrote:
So it appears that there's no bug in perl, nor is there sufficient reason to change an older perldelta. Closing ticket. Thank you very much. -- |
@jkeenan - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#130242 (status was 'rejected')
Searchable as RT130242$
The text was updated successfully, but these errors were encountered: