From 849569e84059538a5e20affd959b55b5a088c244 Mon Sep 17 00:00:00 2001 From: Nikolay Shaplov Date: Tue, 7 Feb 2023 15:19:55 +0300 Subject: [PATCH] Fix manual. Added info about accessing values with comples keys from hash --- lib/Template/Manual/Variables.pod | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/Template/Manual/Variables.pod b/lib/Template/Manual/Variables.pod index 0971b089..b2ceb9f0 100644 --- a/lib/Template/Manual/Variables.pod +++ b/lib/Template/Manual/Variables.pod @@ -182,6 +182,15 @@ L). [% pagename = 'next' %] [% page.$pagename %] # same as [% page.next %] +You can also access hash entry using C method. This might be helpful +if you have complex key name. + +
+    [% files.item('example.txt').content %]
+    
+ +See L for more info. + When you assign to a variable that contains multiple namespace elements (i.e. it has one or more 'C<.>' characters in the name), any hashes required to represent intermediate namespaces will be