.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "PMLOAD 1p" .TH PMLOAD 1p "2022-10-14" "perl v5.34.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" pmload \- show what files a given module loads at compile time .SH "DESCRIPTION" .IX Header "DESCRIPTION" Given an argument of a module name, show all the files that are loaded directly or indirectly when the module is used at compile-time. .SH "EXAMPLES" .IX Header "EXAMPLES" .Vb 10 \& $ pmload IO::Handle \& /usr/local/devperl/lib/5.00554/Exporter.pm \& /usr/local/devperl/lib/5.00554/Carp.pm \& /usr/local/devperl/lib/5.00554/strict.pm \& /usr/local/devperl/lib/5.00554/vars.pm \& /usr/local/devperl/lib/5.00554/i686\-linux/DynaLoader.pm \& /usr/local/devperl/lib/5.00554/i686\-linux/IO/Handle.pm \& /usr/local/devperl/lib/5.00554/Symbol.pm \& /usr/local/devperl/lib/5.00554/i686\-linux/IO/File.pm \& /usr/local/devperl/lib/5.00554/SelectSaver.pm \& /usr/local/devperl/lib/5.00554/i686\-linux/Fcntl.pm \& /usr/local/devperl/lib/5.00554/AutoLoader.pm \& /usr/local/devperl/lib/5.00554/i686\-linux/IO.pm \& /usr/local/devperl/lib/5.00554/i686\-linux/IO/Seekable.pm \& \& $ cat \`pmload IO::Socket\` | wc \-l \& 4015 \& \& $ oldperl \-S pmload Tk \& /usr/lib/perl5/site_perl/Tk/Pretty.pm \& /usr/lib/perl5/Symbol.pm \& /usr/lib/perl5/site_perl/Tk/Frame.pm \& /usr/lib/perl5/site_perl/Tk/Toplevel.pm \& /usr/lib/perl5/strict.pm \& /usr/lib/perl5/Exporter.pm \& /usr/lib/perl5/vars.pm \& /usr/lib/perl5/site_perl/auto/Tk/Wm/autosplit.ix \& /usr/lib/perl5/site_perl/auto/Tk/Widget/autosplit.ix \& /usr/lib/perl5/site_perl/Tk.pm \& /usr/lib/perl5/i386\-linux/5.00404/DynaLoader.pm \& /usr/lib/perl5/site_perl/auto/Tk/Frame/autosplit.ix \& /usr/lib/perl5/site_perl/auto/Tk/Toplevel/autosplit.ix \& /usr/lib/perl5/Carp.pm \& /usr/lib/perl5/site_perl/auto/Tk/autosplit.ix \& /usr/lib/perl5/site_perl/Tk/CmdLine.pm \& /usr/lib/perl5/site_perl/Tk/MainWindow.pm \& /usr/lib/perl5/site_perl/Tk/Submethods.pm \& /usr/lib/perl5/site_perl/Tk/Configure.pm \& /usr/lib/perl5/AutoLoader.pm \& /usr/lib/perl5/site_perl/Tk/Derived.pm \& /usr/lib/perl5/site_perl/Tk/Image.pm \& /usr/lib/perl5/site_perl/Tk/Wm.pm \& /usr/lib/perl5/site_perl/Tk/Widget.pm .Ve .SH "NOTE" .IX Header "NOTE" If the programmers used a delayed \f(CW\*(C`require\*(C'\fR, those files won't show up. Furthermore, this doesn't show all possible files that get opened, just those that those up in \f(CW%INC\fR. Most systems have a way to trace system calls. You can use this to find the real answer. First, get a baseline with no modules loaded. .PP .Vb 9 \& $ strace perl \-e 1 2>&1 | perl \-nle \*(Aq/^open\e("(.*?)".* = [^\-]/ && print $1\*(Aq \& /etc/ld.so.cache \& /lib/libnsl.so.1 \& /lib/libdb.so.2 \& /lib/libdl.so.2 \& /lib/libm.so.6 \& /lib/libc.so.6 \& /lib/libcrypt.so.1 \& /dev/null \& \& $ strace perl \-e 1 2>&1 | grep \-c \*(Aq^open.*= [^\-]\*(Aq \& 8 .Ve .PP Now add module loads and see what you get: .PP .Vb 2 \& $ strace perl \-MIO::Socket \-e 1 2>&1 | grep \-c \*(Aq^open.*= [^\-]\*(Aq \& 24 \& \& $ strace perl \-MTk \-e 1 2>&1 | grep \-c \*(Aq^open.*= [^\-]\*(Aq \& 35 .Ve .SH "SEE ALSO" .IX Header "SEE ALSO" Devel::Loaded, \fBplxload\fR\|(1). .SH "AUTHORS and COPYRIGHTS" .IX Header "AUTHORS and COPYRIGHTS" Copyright (C) 1999 Tom Christiansen. .PP Copyright (C) 2006\-2014 Mark Leighton Fisher. .SH "LICENSE" .IX Header "LICENSE" This is free software; you can redistribute it and/or modify it under the terms of either: (a) the \s-1GNU\s0 General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or (b) the Perl \*(L"Artistic License\*(R". (This is the Perl 5 licensing scheme.) .PP Please note this is a change from the original pmtools\-1.00 (still available on \s-1CPAN\s0), as pmtools\-1.00 were licensed only under the Perl \*(L"Artistic License\*(R".