mipatel has asked for the wisdom of the Perl Monks concerning the following question:
hello i want to list the directories, found files,. Currently i am using following module to find the file
my $foldername; my $subdirlevel= shift // 2 ; my @files = File::Find::Rule->file() ->name('music.xml') ->maxdepth($subdirlevel) ->in( $foldername); print Dumper (@files); this give me the path where the music.xml is but not the directory nam +e.
how do i also get the directory name instead of the path to the file?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to find the file from the subdirectories of a directory?
by toolic (Bishop) on Jun 22, 2012 at 21:25 UTC | |
|
Re: how to find the file from the subdirectories of a directory?
by zentara (Cardinal) on Jun 23, 2012 at 09:57 UTC |