http://www.perlmonks.org?node_id=912851


in reply to Re: Workings of UNIVERSAL::can
in thread Workings of UNIVERSAL::can

Not likely to be the problem as that's the source base I'm working on. Although it is true that that distribution does not have my problem.

Just to be clear, I'm not alleging that UNIVERSAL::can is buggy. If I understand what's it algorithm is -- how it finds out what files it searches to determine if a script 'can', then I can figure out what I'm doing wrong.

I hope that this clears things up.

Replies are listed 'Best First'.
Re^3: Workings of UNIVERSAL::can
by Anonymous Monk on Jul 05, 2011 at 17:11 UTC

    I hope that this clears things up.....

    It really doesn't :)

    Anyway, It just walks @ISA asking if it can, See UNIVERSAL, perlobj, perlboot

      There are no base classes other than UNIVERSAL. In any event, the functions that can't be found are within the C++ library. I have verified that the functions mentioned in the library object (.so) file.

        In any event, the functions that can't be found are within the C++ library. I have verified that the functions mentioned in the library object (.so) file.

        I understood as much from your original post :)

        UNIVERSAL only deals with the perl symbol table (stash), it doesn't know anything about the C++ library or the bindings to it (the XS, which is responsible for defining these symbols)