DB<11> $codeRef= sub { print @_ } DB<12> sub doit (&) { $_[0]->("para") } DB<13> doit { &$codeRef } para
But one should check about the costs of the extra call level ... maybe not too big.
Cheers Rolf
In reply to Re^4: The & prototype and code references in scalars.
by LanX
in thread The & prototype and code references in scalars.
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |