sivaramanm has asked for the wisdom of the Perl Monks concerning the following question:
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 $_"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File::Find Problem
by Samy_rio (Vicar) on Aug 11, 2006 at 05:44 UTC | |
|
Re: File::Find Problem
by graff (Chancellor) on Aug 11, 2006 at 06:08 UTC | |
by MidLifeXis (Monsignor) on Aug 11, 2006 at 17:31 UTC |