The problem was the modules path.
Thank you for your concise instructions both in the tutorial and here regarding my installation problems.
I began anew. Since I had saved the scripts with the line numbers deleted I copied and pasted in the code into the appropriate files. When I checked I kept getting error messages. This was one of the last:
Simple.pm
Base class package "CGI::Application" is empty. (Perhaps you need to 'use' the module which defines that package first.) at /home/username/public_html/cgi-bin/WebApp/libs/MyLib/Login.pm line 4 BEGIN failed--compilation aborted at /home/username/public_html/cgi-bin/WebApp/libs/MyLib/Login.pm line 4. Compilation failed in require at (eval 1) line 3. ...propagated at /usr/lib/perl5/5.8.8/base.pm line 85. BEGIN failed--compilation aborted at Simple.pm line 5.
Login.pm
Base class package "CGI::Application" is empty. (Perhaps you need to 'use' the module which defines that package first.) at Login.pm line 4 BEGIN failed--compilation aborted at Login.pm line 4.
simple.pl
Base class package "CGI::Application" is empty. (Perhaps you need to 'use' the module which defines that package first.) at /home/username/public_html/cgi-bin/WebApp/libs/MyLib/Login.pm line 4 BEGIN failed--compilation aborted at /home/username/public_html/cgi-bin/WebApp/libs/MyLib/Login.pm line 4. Compilation failed in require at (eval 1) line 3. ...propagated at /usr/lib/perl5/5.8.8/base.pm line 85. BEGIN failed--compilation aborted at /home/username/public_html/cgi-bin/WebApp/libs/MyLib/Simple.pm line 5. Compilation failed in require at simple.pl line 5. BEGIN failed--compilation aborted at simple.pl line 5.
After uninstalling and reinstalling the "CGI::Application" several times and changing the order of the 'use lib' lines. Then I looked for
/usr/lib/perl5/5.8.8/base.pm line 85(which didn't exist). While doing that I Googled for similar error messages and solutions.
I had begun my response to you when I thought that I would try to manually delete the CGI::Application file, using the file manager, before reinstalling. I couldn't find it and when I eventually did I discovered the CGI::Application in a different 'library'. So I tried the new library path and that's what worked.
It seems that my host, which auto-installs all modules from cpan, separates the requested modules and the pre-installed modules. Maybe that's standard.
Again, I appreciate your help.
In reply to Re^2: Authentication Script Path Problems
by Anonymous Monk
in thread Authentication Script Path Problems
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |