Harry Putnam wrote:
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?

Yes. You should test everything to see if it's a file:

  if( -f $_ ){
    # copy
  }

See `perldoc perlfunc` and search for "-X FILEHANDLE"

--

Just my 0.00000002 million dollars worth,
   --- Shawn

"Probability is now one. Any problems that are left are your own."
  SS Heart of Gold, _The Hitchhiker's Guide to the Galaxy_

"This statement is true but unprovable."
  Kurt Godel

* Perl tutorials at http://perlmonks.org/?node=Tutorials
* A searchable perldoc is at http://perldoc.perl.org/


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to