Keep It Simple, Stupid | |
PerlMonks |
Re^3: Unlimited chaining (is there a way to detect this?)by ysth (Canon) |
on Jan 06, 2008 at 22:43 UTC ( [id://660707]=note: print w/replies, xml ) | Need Help?? |
By "Is it possible to detect it?" I was assuming you meant detect when the return
from the current method will be the object of a method call. That's what want('OBJECT') does. From your other replies, it seems what you are looking for is somehow to detect when a method is called on its previous return "too many" times.
I'm not sure what the problem calling code would look like, though.
In Section
Seekers of Perl Wisdom
|
|