in reply to -> operator

There are disambiguation rules, for example:

I'm sure there are more rules, but in general it does what I mean (dwim) ;-)

Replies are listed 'Best First'.
Re^2: -> operator
by Anonymous Monk on Nov 13, 2007 at 13:33 UTC
Re^2: -> operator
by chromatic (Archbishop) on Nov 13, 2007 at 16:50 UTC
    If the LHS is a package name, the RHS is interpreted as a sub and the first arg is the LHS (this is quasi identical to the previous case).

    I think the word "method" is better than "sub" there, as method dispatch occurs in this case. (Use B::Concise and look for an op named fetchmethod or something similar.)