Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Comparing spaceships (cmp and <=> as options)

by tobyink (Canon)
on May 20, 2013 at 16:50 UTC ( #1034371=note: print w/replies, xml ) Need Help??


in reply to Comparing spaceships (cmp and <=> as options)

Have you seen salva's Sort::Key and Sort::Key::Maker - they don't do exactly what you're talking about, but I'm fairly sure you'll find something to like in them.

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
  • Comment on Re: Comparing spaceships (cmp and <=> as options)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1034371]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2019-12-14 18:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?