in reply to Re^6: Module Path Problem
in thread Module Path Problem

See the documentation for lib. The use lib '...'; tells the system additional locations where library files may be found.

--MidLifeXis

Replies are listed 'Best First'.
Re^8: Module Path Problem
by bigup401 (Pilgrim) on Nov 18, 2014 at 19:34 UTC
    ya i got it bt i think the problem is file permission because everytime when i use it i get this, its the only module which is not install at the server, so when i try to remove it from my script the page works very well with other modules installed on the server Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log.

      More information about this error may be available in the server error log.

      And what does the server error log say? Apache (and possibly IIS?) store output generated to STDERR in the server's error log. This information will usually contain more useful information than just "it didn't work". Try also adding use CGI::Carp 'fatalsToBrowser'; to the top of your script. Make sure that you remove this in production, as it can leak information that you do not want to provide an outsider.

      --MidLifeXis

        i checked the log Can't locate Moose.pm in @INC (@INC contains: . /usr/local/lib/perl5/5.8.8/i686-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/i686-linux /usr/loca