in reply to Ambiguous % parsing
as a method call followed by a hash.$foo->mysub %2
Interestingly, such a parse is possible in the indirect object notation:
method $obj %2
nevertheless, Perl parses that as modulo, too:
perl -MO=Deparse,-p -e 'method $o 2; method $o %2' $o->method(2); ($o->method % 2); -e syntax OK
|
|---|