]> lifelog.hopto.org Git - LifeLog.git/commitdiff
New help doco.
authorWill Budic <redacted>
Thu, 21 Sep 2023 06:59:24 +0000 (16:59 +1000)
committerWill Budic <redacted>
Thu, 21 Sep 2023 06:59:24 +0000 (16:59 +1000)
htdocs/cgi-bin/docs/PerlCNF/PerlCNFConstantAnonExplained.md

index 1b12e8ea0c2a9e75e1e24736f2ff207543509216..7cdce0a1c7df3e0937d56da28ac6aba1a796399d 100644 (file)
@@ -122,6 +122,7 @@ Anons which are instructional must be scripted standalone.
 
     There is three type of collections.
     Convention is to prefix collection property name with the instruction signifier of either **@** or **%**.
+
     The list signifier is a **$$** postfix to the name.
 
 1. Array type.
@@ -143,17 +144,17 @@ Anons which are instructional must be scripted standalone.
     ```
 
     ```PERL
-       my $list = $parser->collection('@SomeList');
-       my $hash = %{$parser->collection('%SomeHash')};
+       my @list = $parser->collection('@SomeList');
+       my %hash = %{$parser->collection('%SomeHash')};
     ```
 
-
-3. List Type
-    1. Collections as named list so can be scripted into multiple properties or files (includes).
+3. List Type (experimental)
+    1. Collections as a named list so can be scripted into multiple properties or files (includes).
         ```CNF
         <<MyList$$<@>1,3,5,9,13>>
-        <<MyList$<@>19,23,113>>
+        <<MyList$$<@>19,23,
+        113>>
         ```
     ```PERL
-       my $list = $parser->list('MyList');
+       my @list = $parser->list('MyList');
     ```