On Wed, 28 May 2008, Chris Lewis wrote:
I'm trying to implement a subroutine shared between plugins.
The library routine looks something like:
sub createpattern {}
It needs to be exported from your library, or called with a full package
name, how are you doing that?
The most common way is
On Wed, 2008-28-05 at 12:58 -0400, Chris Lewis wrote:
> How do you do this properly?
perldoc -f use
perldoc -f require
Has semantics similar to the following subroutine:
...
Note that the file will not be included twice under the same
specified na
I'm trying to implement a subroutine shared between plugins.
The library routine looks something like:
sub createpattern {}
And is stored under ../qpsmtpd/lib/NTMqplib.pm
qpsmtpd-async is called from the qpsmtpd directory.
Each plugin then calls it thusly:
use NTMqplib;
sub register ... {