in reply to Using "prototype" tricks in methods
As everybody has already pointed out you're out of luck I'm afraid. Prototypes don't apply to methods. You'll just have to pass the subroutine explicitly like this:
$object->method( sub { ... } );
(Note: you are actually passing a subroutine with the prototype too - it just looks like a block).
|
|---|