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;
In reply to Re: List of all included modules
by Joost
in thread List of all included modules
by mribizli
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |