Well, when you initialize the module by loading it, this executes:
my $hello = hello();
Then later, you try to print $hello. It's going to be uninitialized, because you're not sending a value into hello() in that call. Try: my $hello = hello('blah');
In reply to Re^3: Passing value to a Perl module
by stevieb
in thread Passing value to a Perl module
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |