Excel:...::Loop(3pm)

πŸ“¦
version 0.34 Β· 2 versions
  • 0.34 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.34 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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