For When You Can't Have The Real Thing
[ start | index | login ]
start > perl > list missing modules

list missing modules

Created by dave. Last edited by dave, 13 years and 169 days ago. Viewed 2,452 times. #2
[diff] [history] [edit] [rdf]

How to list modules missing from a perl script?

cat <name-of-script> | awk '$1 == "use" {print "perl -e \"use "$2"\" 2> /dev/null || echo "$2}' | sh


no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt