This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldelta: restate the changes to ${x} versus $x
[perl5.git] / pod / perldelta.pod
index 1999110..a7f39e2 100644 (file)
@@ -341,11 +341,12 @@ insanity.  As of v5.18, these now follow the rules of other identifiers,
 in addition to accepting characters that match the C<\p{POSIX_Punct}>
 property.
 
 in addition to accepting characters that match the C<\p{POSIX_Punct}>
 property.
 
-There are no longer any differences in the parsing of identifiers
-specified as C<$...> or C<${...}>; previously, they were dealt with in
-different parts of the core, and so had slightly different behavior. For
-instance, C<${foo:bar}> was a legal variable name.  Since they are now
-both parsed by the same code, that is no longer the case.
+There is no longer any difference in the parsing of identifiers
+specified by using braces versus without braces.  For instance, perl
+used to allow C<${foo:bar}> (with a single colon) but not C<$foo:bar>.
+Now that both are handled by a single code path, they are both treated
+the same way: both are forbidden.  Note that this change is about the
+range of permissible literal identifiers, not other expressions.
 
 =head2 Vertical tabs are now whitespace
 
 
 =head2 Vertical tabs are now whitespace