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');