At 9:21 AM -0800 11/21/02, [EMAIL PROTECTED] wrote:
kite_rsa$ perl hello.pl
Undefined subroutine &Mytest::hello called at hello.pl line 4.
%RMS-F-DIR, error in directory name
Case problems. If you look, you'll find that the package declaration in the module you built was "mytest" not "Mytest". VMS upcases everything on the command line, and the Dec C RTL then downcases everything (well, unless you set logicals for each of them) so the parameter passed into h2xs had a different name than you thought it should've.

The use Mytest worked because perl went to load in Mytest.pm but, since the filesystem's case-insensitive, loaded in mytest.pm instead. Perl, being case sensitive, believed the "package myfile" that I'm sure was in mytest.pm.

Anyway, the moral of the story is "always quote your package names on the command line".
--
Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk


Reply via email to