-
Notifications
You must be signed in to change notification settings - Fork 559
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
perlop: clarify \U, \L, \F behaviour #19999
perlop: clarify \U, \L, \F behaviour #19999
Conversation
... as they do not stop "at \E or end of string" but are also stopped by another \U, \L or \F. See also: https://www.nntp.perl.org/group/perl.perl5.porters/2022/07/msg264490.html
... which were missing from the test suite. Ensure the current behaviour - whereby a \E is not needed to end a \L or \U "chunk" - is tested.
09b86ff
to
7f00929
Compare
People may find #11145 instructive |
@khwilliamson my goal here is to "at least" document (and have tests for) the current non-stacking behaviour, so that it's clearer that's what's happening / isn't as nebulous as before. It's hopefully a simple change to merge. |
Looking at some tickets; this change in docs was also suggested in #19670 |
On Wed, Jul 27, 2022 at 04:46:51AM -0700, Marco Fontani wrote:
... as they do not stop "at \E or end of string" but are also
stopped by another \U, \L or \F.
Given that we're currently unclear as to what the correct behaviour should
be in all circumstances, and we may well change things once we are clear,
I don't think we want to be fixing the current behaviour in the
documentation.
…--
A major Starfleet emergency breaks out near the Enterprise, but
fortunately some other ships in the area are able to deal with it to
everyone's satisfaction.
-- Things That Never Happen in "Star Trek" #13
|
Sounds good, closing this then. |
Having documented some(/all?) the quirks/caveats/... for case modifiers1 it puts me in a better position to comment. The text is mostly correct but based on the current behavior it's missing the caveats:
So if after 1., 2., 3. there are still two occurrences of Also note: a Footnotes |
... as they do not stop "at \E or end of string" but are also
stopped by another \U, \L or \F.
See also:
https://www.nntp.perl.org/group/perl.perl5.porters/2022/07/msg264490.html