in reply to Re: Re: can't find my module?
in thread can't find my module?

Shouldn't my program have been able to require base if base is a preexisting module?

Yes it should. If doing require base gets you an error there is something wrong with your Perl installation since it has been core since Perl v5.005. What error did you get?

was able to find a different module (haven't played with the "base" one again), but I had to name it something different than what I had intended. (I had intended Nfs.pm, but that was never found, so I used "Nfs_module.pm", and it found that just fine). So I guess my question now becomes, why can't I use an arbitrary name for a perl module?

Nfs.pm is a valid module name and should work perfectly - what error did you get?

Replies are listed 'Best First'.
Re: Re^3: can't find my module?
by arootbeer (Novice) on Nov 22, 2003 at 00:57 UTC
    Well, I've de-modularized my code for the momen, but I was able to recreate the problem by adding require "base"; back at the top.

    The error message is as follows:

    Can't locate base in @INC (@INC contains: ./focus /usr/opt/perl5/lib/5.8.0/aix-t
    hread-multi /usr/opt/perl5/lib/5.8.0 /usr/opt/perl5/lib/site_perl/5.8.0/aix-thre
    ad-multi /usr/opt/perl5/lib/site_perl/5.8.0 /usr/opt/perl5/lib/site_perl .) at s
    l_observe.pl line 8.

    (Although, as per the second comment, using require base works just fine.) The error message was the same for Nfs.pm; however, Nfs_module.pm was found. I was having more problems (specifically getting the variables I'm using exported correctly) so, for the sake of getting the code to production level, it's currently de-modularized.