Apparently, there's ambiguity in the parser that does not get resolved as desired.
a b->c() desired: a( b->c() ) actual: ( b->a() )->c()
unary-plus is a no-op, but it changes what the compiler sees from a bareword to an operator. That removes the ambiguity.
Using parens around the parameters (ok( ... )) would also remove the ambiguity.
- ikegami
In reply to Re: freaky deaky plus sign usage
by Anonymous Monk
in thread freaky deaky plus sign usage
by metaperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |