Thread Modul File::Find::Rule Dir nur 1 Level auswerten
(2 answers)
Opened by tophoven at 2007-10-08 14:56
Du hast das maxdepth an der falschen Stelle...
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 #!/usr/bin/perl use strict; use warnings; use File::Find::Rule; # find all the subdirectories of a given directory my $directory = ".."; my @subdirs = File::Find::Rule->maxdepth( 1 )->directory->in( $directory ); foreach my $dir (@subdirs) { print "$dir \n"; } OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/) -- Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html Perl-Entwicklung: http://perl-services.de/ |