Devel::Wherefore - Where the heck did these subroutines come from?


  $ perl -d:Wherefore

will dump symbols in main from

  $ perl -d:Wherefore=App::opan $(which opan)

will dump symbols from package App::opan in the installed opan script

  $ perl -d:Wherefore lib/Foo/

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/ 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.


Rage driven development rapidly released.


 mst - Matt S. Trout (cpan:MSTROUT) <>


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.