You have not imported hello into script.pl. Change your use statement to:
use Foo qw/hello/;
and try again. See Exporter for examples.
In reply to Re: Passing value to a Perl module
by hippo
in thread Passing value to a Perl module
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |