|
Posted by Gunnar Hjalmarsson on June 28, 2005, 12:16 am
Please log in for more thread options
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
|