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



"richardlsmith" <richardlsmith2@xxxxxxxxx> wrote:


> The consuming Perl script looks like this:
>
> #! /usr/bin/perl -w
>
> use Module;
>
> $v1 = "v1";
>
> f1();
>
> ----------
> Any suggestions on how I make this work?

I would use OO + a setter method.

tip:

drop -w, and use strict; use warnings;


--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html

.



Relevant Pages