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 ... {
... = &createpattern(...)
}
What happens is that the first plugin executed works fine, and the next
one errors out saying it can't find createpattern().
Looks like the first plugin executed loads the library, and remembers
it's loaded. The second one thinks it's loaded, but the symbol table
(or whatever) isn't in scope, or some such.
How do you do this properly?