Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Prototype like sort()?

by haukex (Archbishop)
on Feb 01, 2018 at 14:38 UTC ( #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? | Other CB clients
Other Users?
Others chanting in the Monastery: (1)
As of 2023-04-02 08:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?