No, not at all. What I'm saying is that the code I wrote achieves the goal of removing the extra variable (i.e., there's no explicit $action code ref) while not achieving the goal of a "$obj->blah(@args)" style syntax.
Oh, but that I knew. My question was clearly focusing on syntax, not semantics. It was a question "out of curiosity" after all...
So, perhaps a better short version of what I'm saying is, "if all you want to do is eliminate a variable, do this..." Sorry for the confusion.
Not at all, it's an instructive discussion anyway, for someone who could stumble upon it, I guess...
In reply to Re^4: Question re $obj->$action(@args) syntax
by blazar
in thread Question re $obj->$action(@args) syntax
by blazar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |