Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Prototype like sort()?

by haukex (Bishop)
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
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 rifling through the Monastery: (7)
As of 2021-01-20 20:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?