- or download this
use File::Find;
- or download this
use File::Find;
...
{
#.....
}
- or download this
use File::Find;
...
{
print if -d;
}
- or download this
print if -d;
- or download this
print $_ if -d $_;
- or download this
sub print_name_if_dir
{
...
print $file if -d $file;
}
- or download this
use File::Find;
my $dir = # whatever you want the starting directory to be
find(sub {print if -d}, $dir);
- or download this
use File::Find;
find(sub {print $File::Find::name if -d}, ".");
- or download this
use File::Find;
find({wanted => sub {print $File::Find::name if -d}
no_chdir => 1}, ".");
- or download this
#!/usr/local/bin/perl -w
...
{
printf "%10d %s\n", $size{$_}, $_;
}