Skip to content

Conversation

@book
Copy link
Contributor

@book book commented Jan 29, 2026

This also fixes the issue for the remaining (and unused) control character variables: $^[, $^\, $^], $^^.

Fixes GH #24135.

@khwilliamson
Copy link
Contributor

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.
@book book requested review from khwilliamson and leonerd January 29, 2026 22:17
@book
Copy link
Contributor Author

book commented Jan 29, 2026

The change looks good to me, but shouldn't there be tests for the 5 fixed variables?

Just added a test, but besides $^_, the others are not even documented.

@book
Copy link
Contributor Author

book commented Jan 29, 2026

Made another fix to varname, while I was at it.

@book
Copy link
Contributor Author

book commented Jan 29, 2026

Do these changes require a perldelta entry? I suppose so, if they change warning output.

I.e. varname should return ${^FOO} and not $^FOO.
@book book force-pushed the book/gh24135 branch 2 times, most recently from e247da6 to 1bc27e0 Compare February 7, 2026 08:36
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 */
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants