Advanced-Config
view release on metacpan or search on metacpan
t/config/30-alt_symbols_04 multi section test.cfg view on Meta::CPAN
CMT:
CMT: This is just a sample config file that I'm using as a basis.
CMT: It's validated by t/30-alt_symbols_cfg.t
CMT:
CMT: Any changes made to this config file should also be refleced
CMT: in: t/config/10-simple.cfg
CMT: That config file is used to validate this one!
CMT:
CMT: --------------------------------------------------------------
CMT: The required substitutions ...
CMT: Assignment (=) ==> ~
CMT: Comments (#) ==> CMT:
CMT: Variables (${..}) ==> $<..>
CMT: Quotes (' or ") ==> '..'
CMT: Section ([..]) ==> {..}
CMT: --------------------------------------------------------------
CMT: The sections to compare against ...
section_01 ~ Messy Name
section_02 ~ All Variables
CMT: --------------------------------------------------------------
{ $<section_01> }
a ~ 'A is for Apple!'
b ~ B is for Bat! CMT: A comment
c~'C is for Cat!' CMT: Another comment
CMT: Another comment ...
d ~D is for Dog! CMT: Comment (CMT:CMT:CMT:CMT:) ...
e ~ 'E is for Elephant!'
f ~ 'F is for Frog!" CMT: Unbalanced Quotes are not removed. (can't implement)
g ~ G is for Gold Fish!
g ~ $fooled you CMT: Not a variable substitution!
h_pwd ~ 'Hello World!' CMT: Should't appear in fish.
CMT: --------------------------------------------------------------
one ~ ONE
two ~ TWO
three ~ THREE
CMT: All 3 evaluate to the same value ...
number 1 ~ '$<one> $<two> $<three>'
number 2 ~ '$<one> $<two> $<three>'
number 3 ~ $<one> $<two> $<three>
CMT: All 3 evaluate to the same value again ...
number 6 ~ '$<one> $<two> $<three>' CMT: A comment ...
number 5 ~ '$<one> $<two> $<three>' CMT: A comment ...
number 4 ~ $<one> $<two> $<three> CMT: A comment ...
number 8 ~ $<number 1>
rule8 missing ~ $<undefined> CMT: Returns '' as it's value.
CMT: Testing the special variables ... (Rule 0)
( run in 1.024 second using v1.01-cache-2.11-cpan-98e64b0badf )