Paul Ennis <[EMAIL PROTECTED]> 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;
>
> The file warnings.pm is not located in the /usr/local/bin directory.
> Is this the problem?
No... it would go in the @INC directories listed above.
But what a mess.
The perldoc in your PATH doesn't match the perl in its shebang
line. (There were no 'warnings' in 5.005_03.)
Anyway, assuming you want to use 5.6.1, I would:
1) copy that perldoc to ~/bin or someplace
2) put that directory first in your PATH
3) find the 5.6.1 perl
4) and fix your copy of perldoc so the shebang
points at it
> I tried to talk with the Unix Admin, but he is unavailable since
> he quit Friday.
Funny.
--
Steve
perldoc -qa.j | perl -lpe '($_)=m("(.*)")'
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]