The stupid question is the question not asked | |
PerlMonks |
$x | $y | $z = $z | ($x | $y) ?by perl5ever (Pilgrim) |
on Sep 06, 2012 at 15:44 UTC ( [id://992121]=perlquestion: print w/replies, xml ) | Need Help?? |
perl5ever has asked for the wisdom of the Perl Monks concerning the following question:
When playing around with the overload module, I found that perl parses
as if it were I was hoping to a new (left-associative) operation on a new data type (objects of a certain class), so that I could write: and have it translate to: where the order of the arguments to f matters, but it doesn't look like I can do that with overloading. The SO post with more details: http://stackoverflow.com/questions/12293640/why-does-perl-parse-x-y-z-as-z-x-y
Back to
Seekers of Perl Wisdom
|
|