in reply to Re^5: The & prototype and code references in scalars.
in thread The & prototype and code references in scalars.
But "disabling prototype checking" leads to another solution of his problem 8)
DB<8> sub doit (&) { $_[0]->("para") } DB<9> $codeRef= sub { print @_ } DB<10> doit {print @_} para DB<11> &doit($codeRef) # disable checking para
Cheers Rolf
|
|---|