However I strongly agree with ikegami that the desire to complicate your API this way is a code smell suggesting that you're doing something very wrong somewhere.use Want qw(want wantref); # Time passes. sub some_method { if (want('REF') and wantref() eq "OBJECT") { # We are in a chained method call } else { # We are not in a chained method call } }
In reply to Re: Determination of chained method call context
by tilly
in thread Determination of chained method call context
by Bloodnok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |