I've just installed the latest(?) perl, 5.6.1, onto an OS/390 Mainframe
system. I already had an older version of it there, and had it
installed successfully (but now without shedding some blood, and some of
you out there helped me with it).
But now I've run into another problem. make test reported some
problems, but none very major, and So I did a make install. Now, during
the configuration process, I told it to put install things into:
/local/perl
and it did. Now, I've got /local/perl/bin and /local/perl/lib, and lots
of stuff underneath it.
But then I checked it out with a little program of my own, and here it
is:
#!/local/perl/bin/perl
use strict;
towers(5, "A", "B", "C")
sub towsers {
my ($disks,$orig,$dest,$temp) = @_;
if ($disks = 1) {
print("Move 1 disk from $orig to $dest.\n");
} else {
towers($disks-1, $orig, $temp, $dest);
print ("Move 1 disk from $orig to $dest.\n");
towsers($disks-1, $temp, $dest, $orig);
}
}
and try to run it. By the way, this code worked with my previous
install of Perl.
But now, when I attempt to run it, I get:
Can't locate strict.pm in @INC (@INC contains:
/local/apps/perl5.6/lib/5.6.1/os390 /local/apps/perl5.6/lib/5.6.1
and lists several other places, all beginning with /local/apps/perl5.6.
It so happens, that is where I stored it the last time, but I wanted to
install it into a different location this time. /local/apps/perl5.6
doesn't exist anymore. And config.sh (created by the Configure process)
doesn't refer to it.
So, my question is, where is perl finding it? I understand what it
wants to do, and that I can tell it where to find what it needs with an
environmental variable, but I shouldn't have to do that, and I don't
want to do that. Where is it getting @INC from, and how can I change
it?
--
Kevin L. Mullin
Qwest Communications
MVS System Support
Phone: (425) 451-6045
Fax: (425) 453-3589
Email: [EMAIL PROTECTED]