Packages In ActiveState Perl

matthew_heusser at mcgraw-hill.com matthew_heusser at mcgraw-hill.com
Thu Jan 18 12:20:04 CST 2001



Folks -

  About 3 months ago, I wrote this nifty package, stuck it
in my c:/perl/lib directory, and all was well.

  3 months later, I shake the dust off of it, and try to run a
perl script something like this:

#HelloPackage.Pl
use mypackage;
$stuff = some_function_from_my_package();


  And I get this response:

 Undefined subroutine &main::some_function_from_my_package called at
c:\HelloPackage.pl
line 3.

  It's because the "use" line isn't working, and the functions in mypackage are
never
defined.  What's up with that?

Any ideas?

Matt H.





More information about the grand-rapids-pm-list mailing list