Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Turns out that this particular form of sort already exists in the Perl 6 spec -- it was just in an odd place. In Synopis 3, we have:

    The advantage of the method form is that it can be used in places that
    require tighter precedence than C<~~> provides:
        sort { $^a.M <=> $^b.M }, @files
    though that's a silly example since you could just write:
        sort { .M }, @files

    So, it's just Synopsis 29 that needs to be updated, and as of this morning Moritz++ has made that change. So this is indeed an official part of the language, and we can go on remarking about how cool Perl 6 is.