Your Ad Here

IBM AIX/UNIX system storage administration ksh/perl scripting

Thursday, March 19, 2009

List installed Perl modules

perl -MFile::Find=find -MFile::Spec::Functions -lw -e 'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC'

Output:

/usr/opt/perl5/lib/5.8.2/aix-thread-multi/Cwd.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/Config.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/lib.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/re.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/XSLoader.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/DynaLoader.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/B.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/O.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/ByteLoader.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/Encode.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/encoding.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/Fcntl.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/IO.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/NDBM_File.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/ODBM_File.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/Safe.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/Opcode.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/ops.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/POSIX.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/SDBM_File.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/Socket.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/Storable.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/attrs.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/threads.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/Errno.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/Devel/DProf.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/Devel/PPPort.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/Devel/Peek.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/File/Glob.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/IPC/Msg.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/IPC/Semaphore.pm
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/IPC/SysV.pm
........

No comments:

Labels

Blog Archive

BlogCatalog