in reply to List of all included modules
when you want to know which modules are require()'d or use()'d.print "$_\n" for keys %INC;
So, this
Will print out all loaded files AFTER the normal program ends. Not bullet proof, but should work fine for normal cases.#!/usr/bin/perl $file = shift or die "Use: $0 perlprogram\n"; do $file; print "$_\n" for keys %INC;
|
|---|