User Tools

Site Tools


program_lang:perllib

This is an old revision of the document!


Perl

List Perl libraries locations

[root@lnx80 ~]# perl -e 'print join("\n",@INC)'
/usr/local/lib64/perl5
/usr/local/share/perl5
/usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl
/usr/lib64/perl5
/usr/share/perl5

List Perl libraries

# perl -MFile::Find=find -MFile::Spec::Functions -Tlwe 'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC'
# perldoc -l DBI
/usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/DBI.pm
[root@fedora ~]# pmall
Encode (3.19) - character encodings in Perl
Clone (0.46) - recursively copy Perl datatypes
Storable (3.26) - persistence for Perl data structures
Cwd (3.84) - get pathname of current working directory
DBI (1.643) - Database independent interface for Perl
Socket (2.036) - networking constants and support functions
Term::ReadKey (2.38) - A perl module for simple terminal control
Sub::Util (1.63) - A selection of utility subroutines for subs and CODE references
IO::Compress::Brotli (0.004001) - Write Brotli buffers/streams
IO::Uncompress::Brotli (0.004001) - Read Brotli buffers/streams
Digest::SHA (6.04) - Perl extension for SHA-1/224/256/384/512
...

cpan proxy

root@aixtest:/root > cpan
o conf init /proxy/
 <ftp_proxy>
Your ftp_proxy? [] w.x.y.z:<port>

 <http_proxy>
Your http_proxy? [] w.x.y.z:<port>
http://10.10.10.10:8080/

 <no_proxy>
Your no_proxy? [] w.x.y.z:<port>

Proxy userID ?

Proxy password ?

o conf commit
root@aixtest:/root > perl –MCPAN –e'install <module_name>' 
program_lang/perllib.1686580955.txt.gz · Last modified: 2023/06/12 16:42 by manu