Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: what would you like to see in perl5.12? ($foo->do voodoo)by Roy Johnson (Monsignor) |
on Aug 22, 2007 at 20:23 UTC ( [id://634514]=note: print w/replies, xml ) | Need Help?? |
Seems like you could roll your own UNIVERSAL::do to get pretty close to your second want.
Not really profound, but it gives me an excuse to say, "Now go do that $foo->do that U::do so well!" Update: lodin points out that this is pretty close to UNIVERSAL::can. Which it is. Except you'd have to put the object back in the arg list: Ugh. Caution: Contents may have been coded under pressure.
In Section
Meditations
|
|