in reply to A subroutine is a reference to a list of statements
It doesn't allow you to manipulate the subroutine as a list of statements, and you can only assign the subroutine once, but maybe it could be useful anyway. :Duse 5.006_001; sub AUTOLOAD : lvalue { *{ $AUTOLOAD } } &add = sub { shift() + shift() }; print add(17, 25), "\n";
|
|---|