http://qs321.pair.com?node_id=122724

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

OK, I am stumped. What's new!

I am working on a small module(my first but not last) of my own brewing. And I have generated a test script to test the module. I have a test.pl which calls a module which is exporting a subroutine OpenNotes. The problem is as follows.

test.pl
"my $notesreturn = OpenNotes($var1, $var2);"

This fails for

Undefined subroutine &main::OpenNotes called at C:\My …\test.pl line 31.

Now if I remove the "my $notesreturn =" And just have OpenNotes($var1,$var2);

I don't get an error until latter in the script when $notesreturn is needed.

Anyone have a good ideas.