Hello Monks,
I don't get result for spaced directory name when using File::Find. I have tried as below:
When I remove space in directory name, it is working
Thanks
Siva
use warnings; use File::Find; die ("\n\n\tsyntax: pdftotextscript <folder path>\n") if ($#ARGV != 0) +; my $root_dir = qq/"$ARGV[0]"/; find(\&fix, $root_dir); sub fix { return if ! /\.pdf?/i; system("c:\/Tools\/pdftotext.exe $_"); }
In reply to File::Find Problem by sivaramanm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |