hi
i have been using CGI::Application::Plugin::Apache to run a website and
it is working swimmingly ...
except
i am trying to add a plain vanilla mod_perl handler to the website and i
keep getting an error like this:
Can't locate object method "handler" via package "XX::YYY".\n
and here's the top few lines of the package:
1 package XX::YYY;
2
3 use strict;
4 use warnings;
5
6 # this shouldn't need to be here ...
7 #use lib ( '..', '../../../local/lib/perl5' );
8
9
10 BEGIN
11 {
12 use Exporter ();
13 our ($VERSION, @ISA, @EXPORT);
14
15 # set the version for version checking
16 $VERSION = 1.00;
17
18 @ISA = qw(Exporter);
19 @EXPORT = qw(&handler);
20 }
21
22 use Mail::Sendmail;
23 use HTML::Template;
24 use Apache::Constants qw( :common );
25
26 use XX::DBCon;
27
28 sub handler
29 {
30
31 my $r = shift;
[rest of lib deleted]
i have changed the name to 'XX::YYY', but everything else is the same.
as you can see- i even tried putting it in @EXPORT to no avail. is there
something about running the plugin that changes something so that other
mod_perl handlers are not allowed?
any suggestions welcome.
--
\js
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.