Help for this page

Select Code to Download


  1. or download this
    # at the command prompt, assuming we're already in the top-level direc
    +tory
    # containing all the perl source files...  Be advised: this won't work
    + until
    ...
       # then ^^above^^ try your best to parse out the version number of t
    +he module
       # which will then get sent to the terminal
    done
    
  2. or download this
    grep -rhP '\buse\b' * | \
    perl -E 'say $_ =~ /\buse\s+([\w:]+)/ for <>;' | \
    ...
       echo -n $packfile ' -> ';
       grep -P '\$([\w:]){0,}VERSION\b\s+=\s{0,}[[:punct:]]{0,1}\d' $packf
    +ile;
    done
    
  3. or download this
    grep -rhP '\buse\b' * | perl -E 'say $_ =~ /\buse\s+([\w:]+)/ for <>;'
    + | sort | uniq | while read packname; do perldoc -l $packname 2>&-; d
    +one | grep -v '.pod$' | while read packfile; do echo -n $packfile ' -
    +> '; grep -P '\$([\w:]){0,}VERSION\b\s+=\s{0,}[[:punct:]]{0,1}\d' $pa
    +ckfile; done
    
  4. or download this
    /usr/share/perl/5.10/English.pm                           > our $VERSI
    +ON = '1.04';
    /usr/share/perl/5.10/File/Find.pm                         > our $VERSI
    +ON = '1.14';
    ...
    /usr/local/share/perl/5.10.1/Test/Vars.pm                 > our $VERSI
    +ON = '0.002';
    /usr/local/share/perl/5.10.1/Test/Version.pm              > our $VERSI
    +ON = '1.002001'; # VERSION