I've just re-invented a wheel and discovered a way to say which modules uses given one, and from which location they come.
Quite simple and usefull (for me at least).
for Win32:
perl -Mvars -we "print join qq/\n/,map {qq/$_=>$INC{$_}/} sort keys %I +NC"
for other systems (including Cygwin):
perl -Mvars -we 'print join qq/\n/,map {qq/$_=>$INC{$_}/} sort keys %I +NC'
Sample output will be>D:/perl561/lib/>D:/perl561/lib/>D:/perl561/lib/>D:/perl561/lib/>D:/perl561/lib/ warnings/>D:/perl561/lib/warnings/
If other module needed, specify, for example, other -M option

Replies are listed 'Best First'.
Re: look which and from where modules were included
by svad (Pilgrim) on May 07, 2002 at 14:52 UTC
    ... and yes, it will be even shorter with -l option to shorten print statement...
    perl -Mvars -lwe "print for map {qq/$_=>$INC{$_}/} sort keys %INC"


      This has just solved a little problem of mine finding where some troublesome modules where coming from on one system but not another, thanks. PerlMonks is the bees knees.


      Pereant, qui ante nos nostra dixerunt!