For comparison; sub allows you to specify a coderef with curly braces. And sub allows you to omit the "promise" word.
What's the point of "promise" other than to make you type more letters?
In reply to Re^2: How to understand chapter 6 of Higher Order Perl? (promise/show)
by Anonymous Monk
in thread How to understand chapter 6 of Higher Order Perl?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |