Shawn Corey <[EMAIL PROTECTED]> writes:
> When File::Find goes looking for files, it chdir's to each directory
> its looking in. When it's in ./dir1, there is no ./dir1/tmp to copy
> files into, so you get an error. Change your calling sequence of
> find() to:
>
> find( { wanted => \&wanted, no_chdir => 1, }, @searchdir);
That formula did'nt do it either but it did show a different error
that throws some light on this.
Notice the first file is the directory name <dir1>
hpdb cp'ing ./dir1 => tmp/001
Failed to copy ./dir1 =>
tmp/001: Is a directory at ./renum2.pl line 113
Thats why copy is failing.
Is it normal for File:Find to list the directory name as the first
file found?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>