Think about Loose Coupling | |
PerlMonks |
List all modules and versions used by a programby tachyon-II (Chaplain) |
on Apr 21, 2008 at 13:10 UTC ( [id://681911]=CUFP: print w/replies, xml ) | Need Help?? |
Sometimes things break because code that worked with certain versions of modules does not work with others. This short block just dumps all the modules in use, with their version numbers when a script exits. By doing it in an END block you get a realistic picture of what got loaded and it will still print if your code dies for whatever reason.
Back to
Cool Uses for Perl
|
|