Too much Perl 6

| No Comments | No TrackBacks

So, yesterday I was giving a quick perl workshop using Catalyst. The idea was to write a blog in 3 hours. At some point I wrote the following code:

sort { (stat $_)[10] } glob 'posts/*';

And it didn't work, because Perl 5 doesn't DWIM when I have a sort routine that takes only one parameter, while Perl 6 would realize that and use that value for a later sorting. Basically, Perl 6 implemented the schwartzian transform in its core.

No TrackBacks

TrackBack URL: http://daniel.ruoso.com/cgi-bin/mt/mt-tb.cgi/148

Leave a comment

About this Entry

This page contains a single entry by Daniel Ruoso published on July 31, 2009 10:08 AM.

Epitáfio was the previous entry in this blog.

Far More Than You Ever Wanted To Know About Typeglobs, Closures and Namespaces is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.