-
Notifications
You must be signed in to change notification settings - Fork 610
compute the correct varname for control character variables starting with _ #24136
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
base: blead
Are you sure you want to change the base?
Conversation
|
The change looks good to me, but shouldn't there be tests for the 5 fixed variables? |
…with _ This also fixes the issue for the remaining (and unused) control character variables $^[ $^\ $^] $^^ Fixes GH #24135.
Just added a test, but besides |
|
Made another fix to |
|
Do these changes require a perldelta entry? I suppose so, if they change warning output. |
I.e. varname should return ${^FOO} and not $^FOO.
e247da6 to
1bc27e0
Compare
| version - ie substr($name, 1, 1) = $buffer; */ | ||
| sv_insert(name, 1, 1, buffer, 2); | ||
| version - ie substr($name, 1, 1) = $buffer; | ||
| wrap in { } if the name is longer than 1 character */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New line uses a tab for indentation.
This also fixes the issue for the remaining (and unused) control character variables:
$^[,$^\,$^],$^^.Fixes GH #24135.