On Wednesday, August 14, 2002, at 02:00 , Paul Ennis wrote:

> I tried to view the perldoc and received the following error message:
>
> :/usr/local/bin>perldoc perl
>
> Can't locate warnings.pm in @INC (@INC contains:
> /usr/local/lib/perl5/5.00503/aix /usr/local/lib/perl
> 5/5.00503 /usr/local/lib/perl5/site_perl/5.005/aix
> /usr/local/lib/perl5/site_perl/5.005 .) at /usr/local/bin/perldoc line 5.
>
> BEGIN failed--compilation aborted at /usr/local/bin/perldoc line 5.
>
> I looked in perldoc line 5 and found the following:
>
> use warnings;


this is really strange - since it apears that you have a mostly
dis combobulated install there....

since If I recall correctly "use warnings" does not come out
until perl5.6...

cf:

[jeeves:/System/Library/Perl] drieux% perldoc -q warnings
Found in /System/Library/Perl/pods/perlfaq7.pod
        How do I temporarily block warnings?

        If you are running Perl 5.6.0 or better, the `use warn-
        ings' pragma allows fine control of what warning are pro-
        duced.  See the perllexwarn manpage for more details.


but your @INC line up there suggests that you are running
the 5.00503 version - on an aix platform.

so you may want to do a 'which perl'

as there may be more than one of them installed

        ls -li /usr/bin/perl /usr/local/bin/perl


> The file warnings.pm is not located in the /usr/local/bin directory.

correct - that is not your problem - that @INC listing
is where that version of perl thinks that the 'things to
include' are suppose to be:

        /usr/local/lib/perl5/5.00503/aix
        /usr/local/lib/perl5/5.00503
        /usr/local/lib/perl5/site_perl/5.005/aix
        /usr/local/lib/perl5/site_perl/5.005

normally you would find that the 'warnings.pm' file
would be in an upper layer like

        /usr/local/lib/perl5/5.00503


which is WAY squirrelly since it does not come into
existence till the next release - eg: 5.6.0 - but
you will want to bring in 5.6.1, as there is no more
access to the original 5.6.0 version itself.


> I tried to talk with the Unix Admin, but he is
> unavailable since he quit Friday.

oye,,,,

are you the only cat who is 'hot footing'
perl at your site???


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to