eptember 30, 2003 3:12 PM
To: Hanson, Rob
Cc: 'Perl Newbies'; [EMAIL PROTECTED]
Subject: RE: building module/package
my redhat 9 is configured canned w/apache and mod_perl. The only
configuration I know is in /etc/httpd/conf.d/perl:
Alias /mp /var/www/mp
SetHandler perl-script
d I would also recommend that the libraries not be put in any
> directory
> accessable to the web server (unless you have no choice).
>
> Rob
>
>
> -Original Message-
> From: Daniel Staal [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 30, 2003 2:39 PM
>
Thanks for your help. I had tried the use lib "path/to/module"; and use
module; but it is still complaining about the use module part.
However, I took the easy route but may annoy structured folks, like perl
is very structured. I put it in /usr/lib/perl5/5.8.0
It works! Yippee! Perl programming i
less you have no choice).
Rob
-Original Message-
From: Daniel Staal [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 2:39 PM
To: [EMAIL PROTECTED]; Perl Newbies
Subject: Re: building module/package
--On Monday, September 29, 2003 23:53 -0700 "[EMAIL PROTECTED]"
<[EMAIL P
--On Monday, September 29, 2003 23:53 -0700 "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
-I've sent this to the mod_perl list but there seems to be no
response.
I got the module working in the current directory executing on the
command line. But I have a problem calling a module in my mod_per
Daniel:
-I've sent this to the mod_perl list but there seems to be no response.
I got the module working in the current directory executing on the command
line. But I have a problem calling a module in my mod_perl dir using
apache on redhat 9. I have a mystuff.pm in the same directory as the
call
--On Monday, September 29, 2003 19:04 -0700 "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
test.pl
---
use mystuff;
print mystuff::trim($username);
mystuff.pm
--
# do i need any declaration line here
# is sub here or what?
# and where do i put this pm file?
sub trim
{ my $z = $_[0]
Can someone help with build a simple module with one function in it?
Can't seem to get anythign working.
I guess something like:
test.pl
---
use mystuff;
print mystuff::trim($username);
mystuff.pm
--
#do i need any declaration line here
#is sub here or what?
#and where do i put this