Ah, but I'm trying to use this as plugin:
package Foo; use vars( qw (@ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $VERSION) ); require Exporter; @ISA = qw( Exporter ); @EXPORT = qw( $description ); @EXPORT_OK = (); %EXPORT_TAGS = (); $VERSION = "0.1"; my $description="Plugin I am!" 1;
So Foo::description is a scalar, not a subroutine. And when trying to access the variable content perl says that it's undefined.
In reply to Re^2: Accessing variables in a runtime-loaded module
by srd
in thread Accessing variables in a runtime-loaded module
by srd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |