v_thunder has asked for the wisdom of the Perl Monks concerning the following question:
I have a couple of methods that take a coderef, and I'd like to use the "prototype" trick to pass in a block instead of a sub as the first argument. The problem is, it's a method, so the first argument is $self.
Am I just out of luck?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using "prototype" tricks in methods
by bobn (Chaplain) on Jul 30, 2003 at 22:06 UTC | |
|
Re: Using "prototype" tricks in methods
by adrianh (Chancellor) on Jul 30, 2003 at 23:25 UTC | |
|
Re: Using "prototype" tricks in methods
by diotalevi (Canon) on Jul 30, 2003 at 22:06 UTC | |
by waswas-fng (Curate) on Jul 30, 2003 at 22:17 UTC | |
|
Re: Using "prototype" tricks in methods
by Anonymous Monk on Jul 30, 2003 at 23:12 UTC |