Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

check modules used by a script and their version

by Discipulus (Canon)
on Apr 03, 2014 at 10:26 UTC ( [id://1080920] : CUFP . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
              perl -d:Modlist=options script.pl
              perl -MDevel::Modlist=options script.pl # equivalent
    
  2. or download this
    #!perl
      #use strict;  #commented to not pollute %INC
    ...
    eval $begin.$content;
    print $@ if $@;
    
  3. or download this
    perl -c -e "BEGIN{print qq(1-begin\n)};
                UNITCHECK {print qq(2-unitcheck\n)};
    ...
    5-main
    6-end