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).
In reply to Re: Using "prototype" tricks in methods
by adrianh
in thread Using "prototype" tricks in methods
by v_thunder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |