|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: A "Fun"ctional Attemptby Athanasius (Archbishop) |
| on Jun 04, 2015 at 09:43 UTC ( [id://1129040]=note: print w/replies, xml ) | Need Help?? |
|
Hello withering, It should be noted that the code is not so strict since it assumes the existence of local variables. Package global variables, actually. And it’s easy to make it work under strict:
Output:
I see from that you are the author of the HOI::Comprehensions and HOI::Match modules. For the benefit of those of us who don’t know as much as we’d like about functional programming, perhaps you could give some explanation of what the code is doing, and of its advantages over equivalent code written in the imperative or object oriented paradigms? Thanks,
In Section
Meditations
|
|
||||||||||||||||||||||||||||||||||||