D
Dirk
Hi,
I am new to Perl and I am trying to list all the folders within a given folder and I have the following code. I know it is simple but for some reason the program just stops and I am not seeing any error code being returned.
Does anybody have a good example of File::Find that they are willing to share. Examples are easier for me to follow.
#!/usr/bin/perl
#
use warnings;
use strict;
use File::Find;
my $path_name;
$path_name = '/test';
find sub {
return unless -d;
print "$File::Find::name\n";
},$path_name;
exit;
I am new to Perl and I am trying to list all the folders within a given folder and I have the following code. I know it is simple but for some reason the program just stops and I am not seeing any error code being returned.
Does anybody have a good example of File::Find that they are willing to share. Examples are easier for me to follow.
#!/usr/bin/perl
#
use warnings;
use strict;
use File::Find;
my $path_name;
$path_name = '/test';
find sub {
return unless -d;
print "$File::Find::name\n";
},$path_name;
exit;