Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Prototype like sort()?

by haukex (Archbishop)
on Feb 01, 2018 at 14:38 UTC ( [id://1208252]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub mysort (&@) {
        my $sub = ref $_[0] eq 'CODE' ? shift : sub {...};
    ...
     mysort {...}      'x', 'y', 'z';
     mysort \&subname, 'x', 'y', 'z';
    &mysort(           'x', 'y', 'z');
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-06-13 00:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.