Pathologically Eclectic Rubbish Lister | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
At least given the above context of calling ->ymd as a method, I wonder what code would have worked before but now not work due to not having parentheses. To me this interpretation looks as if there is a case where:
stops working but
continues to work, or maybe:
stops working but
continues to work. At least in my trials, I can't get the version without parentheses to even compile:
Of course, it could be use of indirect object syntax such that the method ymd was changed to parse differently, but that's also something that would be hard to elicit the stated error message from. I think most (if not all) cases when you get
... the cause is that you tried to treat an unblessed value like an object and the value was not a class name. In reply to Re^4: Perl Syntax - What's the difference?
by Corion
|
|