in reply to ::'s role in strings

I do not know, what this book is trying to say, either. Yet I think, :: does have more meanings in addition to those you mentioned, at least in OO-context. AFAIK,
Animal->foo()
is the same like
Animal::foo("Animal")
Now, if Dog is an Animal, and has no own implementation of the foo()-method,
Dog->foo()
is the same as Dog::foo("Animal") update Animal::foo("Dog") (thanks to ikegami)

Maybe you can clarify your question a little bit further.

As to your p.s., I know :: as the 'scope resolution operator', but I don't know whether this name is really very common in the Perl community.

Replies are listed 'Best First'.
Re^2: ::'s role in strings
by ikegami (Patriarch) on Apr 27, 2006 at 17:47 UTC

    You got it backwards
    Dog::foo("Animal")
    should be
    Animal::foo("Dog")

Re^2: ::'s role in strings
by chromatic (Archbishop) on Apr 27, 2006 at 21:35 UTC

    Your first two examples are not necessarily equivalent. Function invocation uses a very different lookup mechanism from method dispatch.

    The postfix double colons exist to disambiguate classnames from barewords in the parser.