D
David Filmer
I'm trying to run someone else's code. I'm getting pairs of error
messages that look like this:
Compilation failed in require at /path/to/scripts/fooator.pl line
86.
BEGIN failed--compilation aborted at /path/to/scripts/fooator.pl
line 86.
Line 86 says:
use CPM::MainProc;
Well, I figure that I have a problem with that module not being found
in @INC, even though I'm accustomed to a different pair of error
messages ("Can't locate Foo.pm in @INC..." and the same "BEGIN failed"
message).
But, anyway, CPM::MainProc is at /path/to/scripts/perllib/CPM/
MainProc.pm, so I added (before line 86):
use lib( '/path/to/scripts/perllib' , '/path/to/scripts/perllib/
CPM' );
But it makes no difference.
FWIW, The first line of MainProc.pm is
package CPM::MainProc;
I'm thinking the problem has nothing to do with @INC. I don't know
what that "Compilation failed in require" message means.
Can anyone help?
Thanks!
messages that look like this:
Compilation failed in require at /path/to/scripts/fooator.pl line
86.
BEGIN failed--compilation aborted at /path/to/scripts/fooator.pl
line 86.
Line 86 says:
use CPM::MainProc;
Well, I figure that I have a problem with that module not being found
in @INC, even though I'm accustomed to a different pair of error
messages ("Can't locate Foo.pm in @INC..." and the same "BEGIN failed"
message).
But, anyway, CPM::MainProc is at /path/to/scripts/perllib/CPM/
MainProc.pm, so I added (before line 86):
use lib( '/path/to/scripts/perllib' , '/path/to/scripts/perllib/
CPM' );
But it makes no difference.
FWIW, The first line of MainProc.pm is
package CPM::MainProc;
I'm thinking the problem has nothing to do with @INC. I don't know
what that "Compilation failed in require" message means.
Can anyone help?
Thanks!