in reply to Re: Using a module under VMS
in thread Solved - Using a module under VMS
Although the origin of my problem really seems to have something to do with VMS specificities, my question is really more general and not VMS specific: in one case, Perl does not find the module and compilation fails on the use VMS_utils , which is what I would expect. But once I tried to fix that by changing the use lib qw/.../ clause, I no longer have an error on loading the module, so I would assume Perl succeeded to load it, but compilation fails on using the subroutines (e.g. the say function) defined in this module.# use lib ('DISK$ECD:[DMC]'); # does not work use lib 'DISK$ECD/DMC/'; # does not work either
So my more general question is: are there some conditions under which Perl does not fail on the use statement loading a module but still does not apparently load the subroutines defined in the module. Knowing that my module is apparently correct, since everything works correctly when both the programs and the module are in the same directory.
Please also note that I have also tried, among many other things, to copy my module into one of the @INC paths, but I still get the compilation error on the use of subroutines defined in the module. This is really puzzling my mind.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using a module under VMS
by Anonymous Monk on May 28, 2015 at 09:17 UTC | |
by Anonymous Monk on May 28, 2015 at 09:21 UTC | |
by Laurent_R (Canon) on May 28, 2015 at 09:32 UTC |