Re: Re: wackamole and arp
Theo Schlossnagle <[email protected]> Fri, 16 Apr 2004 14:54:44 -0400
| Newsgroups | gmane.comp.apache.mod-wackamole.general |
|---|---|
| Message-ID | <[email protected]> |
Jay West wrote:
>Can anyone elucidate:
>
>PerlUseLib .
>PerlUse example
>
>What exactly do these do in the wackamole config file and what can be used
>as arguments? (not a perl programmer here)
>
>
PerlUseLib is lile:
use lib '/path/to/perl/modules';
PerlUse is like:
use MyModule;
So, if you write a routine in perl called "doit" and place it in a
package in a file called MyModule.pm:
package MyModule;
sub doit {
printf STDERR "Called doir\n";
}
1;
And place that MyModule.pm file in: /opt/wackamole/perl, then you could do:
PerlUseLib /opt/wackamole/perl
PerlUse MyModule
RunDynamic MyModule::doit on up
--
// Theo Schlossnagle
// Principal Engineer -- http://www.omniti.com/~jesus/
// Postal Engine -- http://www.postalengine.com/
// Ecelerity: fastest MTA on Earth