http://www.perlmonks.org?node_id=1080923


in reply to check modules used by a script and their version

Did you know about Devel::TraceUse?


Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^2: check modules used by a script and their version
by Discipulus (Canon) on Apr 03, 2014 at 10:40 UTC
    Obviously no! :=)
    Now that I know, you read my signature? ;=)

    L*
    UPDATE: Devel::TraceUse too seems to execute the code.(typo fixed, thanks to McA)
    UPDATE2: perl -c -d:TraceUse script.pl does not executes the script. thanks again

    L*
    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

      BEGIN {...} blocks are executed by perl -c. It's not easy to prevent that.


      Dave