advanced than my question... That and I haven't gotten a response, so sorry for the crosspost :)
I'm running apache 1.3.x with the associated version of mod_perl, but am having trouble creating regular old include
files to be used with helper functions. Works just great with regular old CGI, mod_perl doesn't like it. Say for example I have two files, main.pl and helper.pl.
# helper.pl
sub dowhatever() { # this is completely pointless, i'm just using it as an example
my [EMAIL PROTECTED]; my $p;
foreach my $k(sort keys %params) { $k =~ s/'$//g; $p.=$k; }
return $p;
}
1;
# main.pl #!/usr/bin/perl use strict; use Apache::Constants qw(OK DECLINED SERVER_ERROR FORBIDDEN); use Apache::Cookie (); require('helper.pl');
#..............some stuff my $q=&dowhatever(%somehash);
That doesn't work in the least, I keep getting errors in my apache logs saying sub dowhatever is an undefined function, etc. Is it possible to
even do anything like this in mod_perl, or do I need to write an Apache module / Perl Module just to have helper functions in there?
Also, I know it's poor style to put multiple statements on 1 line, I just wanted to make this message shorter, so no style tips please. Thanks for any help!
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>