I have been able to correct the @INC path issue and
now have ran into the following error that is
displayed in the error_log
null: Undefined subroutine &Apache::Hello::handler
called
Any help will be appreciated.
[EMAIL PROTECTED]
Hello,
I have written a sample package (from a book). The
package uses an Apache package - Constants.pm that its
path is not included in the @INC variable. I would
like to add the path to the variable by default and
not in runtime as people have suggessted.
Where are the default values of @INC stored ??
Thanks in advance.
[EMAIL PROTECTED]
=====
The error I recieved ...
Can't locate Apache/Constants.pm in @INC (@INC
contains: (.......)
hello.pm
======
package Apache::Hello;
use strict;
use Apache::Constants qw(:common);
sub handler {
my $r = shift;
$r->content_type('text/html');
$r->send_http_header;
my $host = $r->get_remote_host;
$r->print(<<END);
<HTML>
<HEAD>
<TITLE>Hello There</TITLE>
</HEAD>
<BODY>
<H1>Hello $host</H1>
Testing 123
</BODY>
</HTML>
END
return OK;
}
1;
__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/