What can make Class :: Loader unsuccessful if "use" and "new" are not?

I am working on a very large CGI application that uses Crypt :: RSA , which is installed correctly. I get an error like “trying to call a null reference as a function” (I cannot return to get the exact error right now because we had to roll back for the release date) when I try to run any built-in library, I track a null reference to the Crypt constructor :: RSA, which uses Class :: Loader to enable Crypt :: RSA :: ES :: OAEP,

I replaced the "use" and "new" class loader, and this part works fine, although the library still doesn't work at many points. Obviously, something is wrong with my environment. I'm just not sure what. Can anyone give me any conclusions?

+3
source share
1 answer

Well, after 12 hours of breaking into it, I got this job.

( ). , eval() use require ( Class:: Loader, Crypt::), , Perl . use/require , , . @INC , eval, .

, dev vs staging, dev, . , FindBin ( CGI, , Crypt ) /dev/null , .

, , .

Crypt:: RSA , FindBin, requir e , - . Crypt:: RSA Crypt:: RSA:: ES:: OAEP Crypt:: Random:: Generator for Crypt:: Random:: Provider:: rand

, , . , , , , .

+2

All Articles