Ignore:
Timestamp:
11/16/08 20:35:15 (4 years ago)
Author:
OlivierRaginel
Message:

Item38: Removed backticks, use File::Find

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/tools/check_requires.pl

    r14 r745  
    1111# problems. 
    1212# 
     13use File::Find; 
     14use strict; 
     15 
    1316my $trace = 0; 
    14 my @files = grep { !m#/CPAN/# } split(/\n/, `find ./TWiki -name '*.pm' -print`); 
    15 my @modules = @files; 
     17my (@files, @modules); 
     18File::Find::find( sub { /\.pm\z/ && !m#/CPAN/# 
     19                          && push( @files, $File::Find::name ) 
     20                          && push( @modules, $File::Find::name ) 
     21                        }, './TWiki' ); 
    1622@modules = sort { length($a) < length($b) } 
    1723  map { s/\.pm$//; s#^\./##; s#/#::#g; $_ } @modules; 
Note: See TracChangeset for help on using the changeset viewer.