Re: Can't call method <function> on an undefined value at <module>
- From: Gunnar Hjalmarsson <noreply@xxxxxxxxx>
- Date: Mon, 27 Jun 2005 23:16:00 +0200
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 .
- References:
- Can't call method <function> on an undefined value at <module>
- From: richardlsmith
- Can't call method <function> on an undefined value at <module>
- Prev by Date: Can't call method <function> on an undefined value at <module>
- Next by Date: Re: Can't call method <function> on an undefined value at <module>
- Previous by thread: Can't call method <function> on an undefined value at <module>
- Next by thread: Re: Can't call method <function> on an undefined value at <module>
- Index(es):