Thread Dateien in Verzeichnissen rekursiv bearbeiten? (7 answers)
Opened by SoWhy at 2008-01-24 11:37

pktm
 2008-01-24 13:04
#105089 #105089
User since
2003-08-07
2921 Artikel
BenutzerIn
[Homepage]
user image
File::Find::Rule finde ich noch ein Stück besser:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  use File::Find::Rule;
# find all the subdirectories of a given directory
my @subdirs = File::Find::Rule->directory->in( $directory );

# find all the .pm files in @INC
my @files = File::Find::Rule->file()
->name( '*.pm' )
->in( @INC );

# as above, but without method chaining
my $rule = File::Find::Rule->new;
$rule->file;
$rule->name( '*.pm' );
my @files = $rule->in( @INC );
http://www.intergastro-service.de (mein erstes CMS :) )

View full thread Dateien in Verzeichnissen rekursiv bearbeiten?