in reply to Re^2: Accessing variables in a runtime-loaded module
in thread Accessing variables in a runtime-loaded module

lexical variables can never be accessed from outside your package/file. You need a package global variable, eg. our $description to be able to access it.
See perlmod for more on packages and modules.

Paul

Replies are listed 'Best First'.
Re^4: Accessing variables in a runtime-loaded module
by brian_d_foy (Abbot) on Jun 09, 2005 at 17:10 UTC

    You don't need a package variable: you need an acccessor method. Global variables suck. :)

    my $description = 'foo'; sub description { $description }
    --
    brian d foy <brian@stonehenge.com>