Skip to content

Commit 1cd1334

Browse files
committed
perldata: add examples of sigils & braced identifiers
In addition to providing examples of identifiers enclosed in braces, this could also help clarify the concept of sigils and prevent confusion about their usage.
1 parent 00f06a3 commit 1cd1334

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pod/perldata.pod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ in Perl 5.42.
145145

146146
Additionally, if the identifier is preceded by a sigil --
147147
that is, if the identifier is part of a variable name -- it
148-
may optionally be enclosed in braces.
148+
may optionally be enclosed in braces. For example, C<${name}>,
149+
C<@{bigcats}>, C<%{pizza_toppings}>.
149150

150151
Put together, a grammar to match a basic identifier becomes
151152

0 commit comments

Comments
 (0)