Win32::Ldd - Track dependencies for Windows EXE and DLL PE-files
use Win32::Ldd qw(pe_dependencies); my $dep_tree = pe_dependencies('c:\\strawberry\\perl\\bin\\perl.exe');
This module is an XS wrapper for the ntldd library.
It can inspect Windows PE files and extract information about its dependencies.
The following function can be imported from the module:
This function returns a tree of hashes representing the dependencies of the module.
The options accepted by the function are as follows:
Where to look for DLLs. Defaults to the directories in $ENV{PATH}.
$ENV{PATH}
Indicates whether resolved dependencies should also be inspected for its own dependencies. Defaults to true.
unknown!
The ntldd project.
Other tools providing similar features are the Freeware DependencyWalker (aka depends.exe), or the objdump.exe utility (included with Strawberry Perl).
depends.exe
objdump.exe
Copyright (C) 2017 by Salvador Fandiño <sfandino@yahoo.com>.
Copyright (C) 2010-2016 LRN <lrn1986@gmail.com>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
To install Win32::Ldd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Win32::Ldd
CPAN shell
perl -MCPAN -e shell install Win32::Ldd
For more information on module installation, please visit the detailed CPAN module installation guide.