http://qs321.pair.com?node_id=80736

Damian Conway is busy rewriting code from the Perl Cookbook. He's writing it in Perl 6 to allow us to see how the migration will work. Check it out at http://www.perl.com/pub/2001/05/08/exegesis2.html.

For the most part, the code looks familiar. Even newer constructs aren't terribly difficult to figure out:

my int ($pre, $in, $post) is constant = (0..2);
And something that I appreciate: named and typed parameters!
sub insert (HASH $tree is rw, int $val) { ... }
Admittedly, I appreciate the versatility of variadic functions, but sometimes we get bitten. This is a nice feature.

There's lots more there to dig through. Looks like Perl 6 is going to be very interesting. Enjoy!

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.