Excel:...::Loop(3pm)
π Excel::Template::Container::Loop β bestie edition π
okay so you found the manpage for Excel::Template::Container::Loop(3pm) and honestly? slay. this is the Perl module that gives your Excel templates the power of looping, and i'm about to walk you through it like we're texting at 2am. no cap, it's short and it's iconic.
β¨ NAME β¨
Excel::Template::Container::Loop β literally just Excel::Template::Container::Loop. the name is the name, periodt. π
π― PURPOSE π―
to provide looping. that's it. that's the whole job. it loops. π
π·οΈ NODE NAME π·οΈ
LOOP
that's what you call it in your template, bestie. remember it. π
π INHERITANCE π
Excel::Template::Container
so it's a container, and it inherited all that container energy. main character lineage fr fr. π
πΈ ATTRIBUTES πΈ
NAMEβ this is the name of the loop, and it's lowkey the most important part. it's used to identify, within the parameter set, what variables to expose to the children nodes each iteration. so likeβ¦ the name is the key that unlocks which array of hashes your kids get to see. no name, no vibes. π
π§ CHILDREN π§
None. zero. nada. it's giving "i work alone" π
β¨ EFFECTS β¨
None. it's not out here changing your whole life, it just loops. π
π¦ DEPENDENCIES π¦
None. it's self-sufficient. independent queen behavior. π
π USAGE π
<loop name="LOOPY">
... Children here ...
</loop>
so in the example above, the children nodes would have access to the LOOPY array of hashes as parameters. every iteration through that array exposes a different hash of parameters to the children. so each trip around the loop, your kids get new data. it's like handing out different snacks each time you walk past. π
these loops work just like HTML::Template's loops. (and the author literally promises β "I promise I'll give more info here!" β so like, we're all waiting on that, bestie π)
there is one difference β and it's a cute one. the author prefers using Perl-like scoping, so accessing variables outside the LOOP scope from within is perfectly acceptable. you can also hide outside variables with inner values, if you desire, just like Perl. so it's giving very much "what happens in the loop stays in the loop, unless you want it not to." π«Ά
π AUTHOR π
Rob Kinyon (rob.kinyon@gmail.com)
π₯ SEE ALSO π₯
β¦nothing listed. the page just ends. iconic, honestly. go forth and loop. π
this page came from the Perl docs for perl v5.34.0, dated 2022-06-13, under the manual name Excel:...::Loop(3pm) β mwah, thanks for reading, bestie, you ate πβ¨π
π¦ where this page comes from
- debian bookworm: libexcel-template-perl 0.34-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libexcel-template-perl 0.34-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libexcel-template-perl 0.34-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libexcel-template-perl 0.34-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libexcel-template-perl 0.34-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms