[Templates] use base vs. @ISA weirdness in Plugins
Rafael Kitover
caelum@debian.org
Tue, 15 Aug 2000 14:53:00 -0700
--V0207lvV8h4k8FAm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
One of the machines where I use my plugin modules uses perl5.005_3, and
for some reason when I installed beta3 I was getting messages like
"can't locate method load via...' from Plugins.pm line 207. I was a bit
curious why inheritance was failing in this case, and I finally noticed
that if in my Plugin I replaced:
use base qw(Template::Plugin);
with
require Template::Plugin;
@ISA =3D 'Template::Plugin';
it stopped giving me that error message.
I really have no idea why this happened, but just throwing it out
there...
--=20
Do what thou wilt shall be the whole of the Law.
Love is the law, love under will.
--V0207lvV8h4k8FAm
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.2 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iQCVAwUBOZm7u+z9kGY+SikhAQEbmAQAhQNqlw4qXkHg5siL7MhpCXShRct3e3IB
Res0cj1xIRoK+xwRESUWBC9Xh9szraUzhELmRrNnkBLhRC6kjwZ/cWwgJj1VrfIZ
jGrxQQ0sTkhnp5i+w0G2+zteminWZolmpCGhusXUD9sdoZ4aq524h25ClwrYCAdL
U6jfu22/EqQ=
=0nwK
-----END PGP SIGNATURE-----
--V0207lvV8h4k8FAm--