in reply to Re: Authentication Script Path Problems
in thread Authentication Script Path Problems

The Carp error messages are as follows:
"use" not allowed in expression at simple.pl line 7, at end of line syntax error at simple.pl line 7, near "use MyLib::Simple" Execution of simple.pl aborted due to compilation errors.
Line 7 is use MyLib::Simple; I commented that out and I get this message.
syntax error at simple.pl line 9, near "my " Execution of simple.pl aborted due to compilation errors.
Line 9 is my $webapp = MyLib::Simple->new(

Replies are listed 'Best First'.
Re^3: Authentication Script Path Problems
by Corion (Patriarch) on Sep 12, 2010 at 08:59 UTC

    My code works for me. How do you think I'll be able to tell you anything about your code that you don't show?

    The Perl error message you get tells me that you have a typo somewhere before line 7.

    I think now is the time to take a step back and start with a very simple example, like the one I posted. First get that very simple example to work before you try on your main script again.

      The script is working. Thank you for your help.

      The problem was with the modules path. My host, which auto-installs all modules from cpan, separates them by 'requested modules' and the 'pre-installed modules'.