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


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

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.

Replies are listed 'Best First'.
Re^3: check modules used by a script and their version
by davido (Cardinal) on Apr 03, 2014 at 16:17 UTC

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


    Dave