K
kielhd
Hi NG,
I am looking into this problem for a while and can't find a solution.
I need the ***absolute path*** of the files. The following script
gives me the filenames, but not the path:
#!C:\Perl\bin\perl.exe -w
use File::Find;
$dir = "E:\\";
find(\&wanted, $dir);
foreach (@files)
{
print ("---> $_\n");
}
sub wanted { if ( $_ =~ /\.mp3$/ ) { push (@files, $_); } }
exit;
What do I have to do to get the corresponding pathname?
Any hints are appreciated!
Best regards, Henning
I am looking into this problem for a while and can't find a solution.
I need the ***absolute path*** of the files. The following script
gives me the filenames, but not the path:
#!C:\Perl\bin\perl.exe -w
use File::Find;
$dir = "E:\\";
find(\&wanted, $dir);
foreach (@files)
{
print ("---> $_\n");
}
sub wanted { if ( $_ =~ /\.mp3$/ ) { push (@files, $_); } }
exit;
What do I have to do to get the corresponding pathname?
Any hints are appreciated!
Best regards, Henning