Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by LanX (Sage)
on May 19, 2019 at 14:37 UTC ( #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? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2022-01-27 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (71 votes). Check out past polls.

    Notices?