Devel::Wherefore - Where the heck did these subroutines come from?
$ perl -d:Wherefore myscript.pl
will dump symbols in main from myscript.pl
$ perl -d:Wherefore=App::opan $(which opan)
will dump symbols from package App::opan in the installed opan script
$ perl -d:Wherefore lib/Foo/Bar.pm
will dump symbols from package Foo::Bar (we guess the package by stripping either 'lib' or any @INC entry off the front, then assuming the package name is Foo::Bar for Foo/Bar.pm etc). Which means this also works:
$ perl -d:Wherefore $(perldoc -lm App::Cpan)
Note that this code uses B::minus_c to only compile the script so you don't have to worry about it executing - does mean we'll miss runtime require and import but hey, trade-offs.
B::minus_c
Rage driven development rapidly released.
mst - Matt S. Trout (cpan:MSTROUT) <mst@shadowcat.co.uk>
None yet - maybe this software is perfect! (ahahahahahahahahaha)
Copyright (c) 2020 the Devel::Wherefore "AUTHOR" and "CONTRIBUTORS" as listed above.
This library is free software and may be distributed under the same terms as perl itself.
To install Devel::Wherefore, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::Wherefore
CPAN shell
perl -MCPAN -e shell install Devel::Wherefore
For more information on module installation, please visit the detailed CPAN module installation guide.