Skip to content

Commit

Permalink
perldata: add examples of sigils & braced identifiers
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
richardleach committed Dec 5, 2024
1 parent 00f06a3 commit 760e5e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pod/perldata.pod
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ in Perl 5.42.

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

Put together, a grammar to match a basic identifier becomes

Expand Down

0 comments on commit 760e5e6

Please sign in to comment.