Mark Powell wrote:

The only differences I can see with your plugin are you start it with a
"#!/usr/bin/perl -Tw" which seems unusual for a plugin? Does that mean it
specifically runs under perl?

No, that only means that if the plugin were run independently, it would use that Perl. In any module use'd by some other module, the only important use of the shriek line (#!blah) is to enable the use of the flags also present on the line. In reality, the '-T' there is completely useless (it would actually cause a 'Too late to use Taint' warning if the calling program wasn't already running under taint).


The other reason I like to put a shriek line in all of my modules is then I get pretty context highlighting in vim... ;)

  You also put your:

  use Net::LDAP qw(:all);
  use Qpsmtpd::Constants;

inside the auth hook which means they are processed later?

No, they are still processed during compile (you'd have to use an eval to alter that), but it can, sometimes, affect scope. In any case, the Qpsmtpd::Constants is useless, since all plugins get that module automatically.


HTH

John

Reply via email to