Re: Can't call method <function> on an undefined value at <module>



richardlsmith wrote:
I want to reference a variable in a module that was created in the
module consuming program.

<snip>

Any suggestions on how I make this work?

Use its fully qualified name:

    sub f1 {
        print "$::v1\n";
    }

See "perldoc perlmod".

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
.