|go ahead... be a heretic|
Perl6 Contest #2: P6 That Doesn't Look Like P5by Limbic~Region (Chancellor)
|on Jun 02, 2005 at 18:29 UTC||Need Help??|
Limbic~Region has asked for the wisdom of the Perl Monks concerning the following question:
I was rather disappointed at the turnout of Perl6 Contest: Test your Skills. After reading Why aren't you using Perl 6 yet?, I realize there are a lot of good reasons. OTOH, silly exercises to demonstrate skill have never been frowned upon here, so I will continue to poke and prod people to show off their Perl6 knowledge.
I finally figured out how to do arbitrarily nested loops, something tye figured out a long time ago. My problem is that I think in p5 so my p6 code as a result doesn't look very p6ish. The challenge is to achieve the same functionality as clearly and concisely as possible with an emphasis on p6 features.
Note: This code is functional but is currently lacking support for the optional parameters. They may be added later in a reply.
Cheers - L~R
Update: See Pugs Examples for the latest