in reply to Re^2: Variables from modules
in thread Variables from modules

er.
package test;
was thinking of something else while typing.

Replies are listed 'Best First'.
Re^4: Variables from modules
by dave_the_m (Monsignor) on Sep 16, 2004 at 14:40 UTC
    It works for me.
    $ cat test.pm use strict; package test; our $foo = "test"; 1; $ cat p #!/usr/bin/perl -w use strict; use lib "."; use test; print $test::foo ."\n"; $ ./p test $

    Dave.

Re^4: Variables from modules
by ikegami (Patriarch) on Sep 16, 2004 at 14:42 UTC
    Try renaming your package. There's a standard module called Test, and you're probably picking that one up.