Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Can't find or uninstall version of perl (git-bash / perldoc / %INC)

by LanX (Saint)
on May 19, 2019 at 14:37 UTC ( [id://11100255]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Can't find or uninstall version of perl
in thread Can't find or uninstall version of perl

Are you using the git-bash console ?

There you'll have which and a Perl installation and Unix paths notation.

That doesn't effect the normal cmd.exe unless you change PATH to point to the git utilities. ( I never tried this)

Anyway perldoc -l MODUL will point you to your Perl's installation directory.

For instance the doc location of a core module like warnings always works.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

update

s/-t/-l/

update

Fired up my Win box and inside cmd.exe it works

D:\>perldoc -l warnings C:\Perl_524\lib\warnings.pm

But seems that git-bash comes without perldoc

$ perldoc -l warnings Can't locate Pod/Perldoc.pm in @INC ...

But the following works on both variations, provided you swap ' and " accordingly for cmd.exe

$ perl -Mwarnings -e 'print $INC{"warnings.pm"}' /usr/share/perl5/core_perl/warnings.pm

D:\>perl -Mwarnings -e "print $INC{q'warnings.pm'}" C:/Perl_524/lib/warnings.pm
ANYWAY DON'T TRY TO UNINSTALL git's Perl.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11100255]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-26 03:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found