in reply to Passing an anonymous block to a method.
Are you just trying to avoid the 'sub' keyword?
$obj->method(sub { do something } ) ;
should work, I think.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Passing an anonymous block to a method.
by BrowserUk (Patriarch) on Mar 10, 2011 at 18:48 UTC |