in reply to Re: Prototype like sort()?
in thread Prototype like sort()?
Yup, not quite. sort can be called without a block, while using the & prototype means your sub has to be called with a block. Perhaps if Perl supported a prototype like [&@$] like it does \[&@$].
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Prototype like sort()?
by Laurent_R (Canon) on Jan 29, 2018 at 18:45 UTC |