Sub calls only work without parentheses if the sub has been pre-declared (so the parser knows that 'foo' is a sub name):$obj->foo 1;
foo 1; # syntax error sub foo {} foo 2; # ok
Dave.
In reply to Re: Ambiguous % parsing
by dave_the_m
in thread Ambiguous % parsing
by hurricup
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |