Hi... I have what I hope is an easy question.

I've got perl 5.8.0 installed, and have installed CGI, CGI::Application, 
HTML::Template and am creating some simple test files for CGI::Application. 
I've created and run some other applications using CGI and have implemented 
a simple OO package which AUTOLOADs get/set methods.

However, when I try to run the application program that I created with 
CGI::Application, it gives me the following error messages:

[Fri Dec  5 02:25:38 2003] GroupRank.cgi:
        Can't locate package AutoLoader for @GroupRank::ISA
        at /usr/local/www/cgi-bin/GroupRank.cgi line 7.
[Fri Dec  5 02:25:38 2003] GroupRank.cgi:
        Can't locate package AutoLoader for @GroupRank::ISA
        at /usr/local/www/cgi-bin/GroupRank.cgi line 7.
Can't locate object method "new" via package "GroupRank"
        at /usr/local/www/cgi-bin/GroupRank.cgi line 7.

The CPAN module (r command) says that AutoLoader.pm is installed;
AutoLoader                     5.59      5.60  
N/NW/NWCLARK/perl-5.8.2.tar.gz.

The AutoLoader module is located in:
        /usr/local/lib/perl5/5.8.0/AutoLoader.pm

My .cgi file (instance script) looks like this:
///////////////////
#! /usr/bin/perl -wT
use strict;
$|++;

use GroupRank;

my $grouprank = GroupRank->new();
$grouprank->run();
///////////////////

The beginning of my GroupRank.pm file looks like this:
///////////////////
package GroupRank;
use base 'CGI::Application';
use AutoLoader;
#use DBI;

use strict;
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
$|++;
///////////////////
NOTE: I added the 'use AutoLoader;' line to see if it could be found and 
this generates no error.

I'm sure it's obvious, but I can't figure out why CGI::Application can't 
find AutoLoader and gives me that error... any pointers would be much 
appreciated.

thanks...jon seidel


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to