That doesn't allow mysort() to accept coderef without the "sub" like sort() does:
mysort {$b<=>$a} 4,2,1,3; # syntax error In reply to Re^2: Prototype like sort()?
by perlancar
in thread Prototype like sort()?
by perlancar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |