Monks,
I was perusing Meditations, as I am wont to do on a Friday afternoon. I stumbled upon Don’t Repeat Your… version number. It's probably because my brain is already off for the weekend, but I can't seem to wrap my head around the code:
my %const = map { s/\s+//; $_ } map { split /\s*=>\s*/ } grep { /=>/ } map { split /\n/ } << '=cut'; =pod This module uses the following constants: bang_eth => 1 biff => 2 krunch => 3 =cut
I don't do a lot of POD, so I'm pretty lost. I can discern that the code is parsing something that looks like the POD at the end, grabbing the key/value pairs and putting them into a hash. Can anyone shed some (step-by-stepish) light on this?
In reply to POD Meditation? by temporal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |