Did you know about Devel::TraceUse?
In reply to Re: check modules used by a script and their version by Tux in thread check modules used by a script and their version by Discipulus