Bloodnok has asked for the wisdom of the Perl Monks concerning the following question:
Yep, it's brain dead question of the week time again ...
This time I would like to know if it's possible to determine, at runtime, from within a method (whether it be class or instance) whether, or not...
I have read and considered - chaining method calls & Method chain object with easy syntax - (amongst others) but, AFAICT, they don't answer my question.
I have also considered (but not yet too seriously - since it smells less like mastery and more like hackery) whether there's any mileage in using caller & B::Deparse collectively to determine the call context by parsing the calling sub.
As always, any and all suggestions welcomed ...
TIA ,
Update:
The original problem is now solved thanx to the owner of a used module relaxing their intransigence ... that being said, I would still, for the purposes of progressing further down the path of enlightenment, be interested in finding an answer (if there is one).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Determination of chained method call context
by ikegami (Patriarch) on Mar 31, 2009 at 16:08 UTC | |
|
Re: Determination of chained method call context
by kyle (Abbot) on Mar 31, 2009 at 16:07 UTC | |
|
Re: Determination of chained method call context
by tilly (Archbishop) on Mar 31, 2009 at 19:06 UTC | |
by Bloodnok (Vicar) on Apr 01, 2009 at 09:17 UTC |