From 1cd13349b3b6c36a691f1fb362b0df95aed18031 Mon Sep 17 00:00:00 2001 From: Richard Leach Date: Thu, 5 Dec 2024 22:39:41 +0000 Subject: [PATCH] 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. --- pod/perldata.pod | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pod/perldata.pod b/pod/perldata.pod index 1a6b842841de..ac5b71003a43 100644 --- a/pod/perldata.pod +++ b/pod/perldata.pod @@ -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