Skip to content

Commit 303759d

Browse files
committed
' and - just have to be before alpha, not between
X0123-Y432 is a valid identifier.
1 parent 567cca0 commit 303759d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/Perl6/Perl5/Differences.pod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ context.
125125
my $is-nonempty = ?@array;
126126

127127
Apostrophes C<'> and dashes C<-> are allowed as part of identifiers, as long as
128-
they appear between two letters.
128+
the next character is alphabetic. In other words, any two valid identifiers
129+
may be joined with a single C<'> or C<-> character to form a longer identifier.
129130

130131
=cut
131132

0 commit comments

Comments
 (0)