Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Copying a directory recursively

by crabbdean (Pilgrim)
on Mar 10, 2004 at 03:17 UTC ( #335325=note: print w/ replies, xml ) Need Help??


in reply to Re: Copying a directory recursively
in thread Copying a directory recursively

Be wary of the File::Find module, it has a memory leak. See File::Find memory leak I tend to avoid it now.

Is there a Win32 module similar to File::Dirsync or File::Repl mentioned above? My search on ppm3 didn't find anything. I'm looking for a similar solution myself. It my searches prove unsuccessful I'll end up writing my own, just researching now.

Thanks
Dean


Programming these days takes more than a lone avenger with a compiler. - sam
A Standard for the Transmission of IP Datagrams on Avian Carriers


Comment on Re: Re: Copying a directory recursively
Re: Re: Re: Copying a directory recursively
by flyingmoose (Priest) on Mar 10, 2004 at 13:56 UTC
    File::Repl works on Win32. ppm probably doesn't have it, but IIRC you can install from CPAN without needing a compiler.

    perl -MCPAN -e "install File::Repl".

    I would try that -- if you have problems, you may need to download a free copy of nmake from Microsoft (and possibly rename it make) to get CPAN to work, but other than that, it should be fine. Again, I don't think a compiler is required. We use this module at Work on Win32 quite often in our build system. No problems yet!

      The commands seemed to work, although its not completing the install. I also had to punch a few holes in my firewall. haha! Not knowing a lot about this way of compiling I'd probably need to research more. I'll have to look into it later or consult the group in another thread. Below is the trail end of the install to show the error. If you wish to respond write me at crabbdean at hotmail.com rather than dirty this thread with an adjunct conversation.

      Removing previously used \.cpan\build\Win32-API-0.41 CPAN.pm: Going to build A/AC/ACALPINI/Win32-API-0.41.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Win32::API::Callback Writing Makefile for Win32::API -- OK Running make test test -- NOT OK Running make install make test had returned bad status, won't install without force Running make for D/DR/DROBERTS/File-Repl-1.20.tar.gz Is already unwrapped into directory \.cpan\build\File-Repl-1.20 CPAN.pm: Going to build D/DR/DROBERTS/File-Repl-1.20.tar.gz -- OK Running make test test -- NOT OK Running make install make test had returned bad status, won't install without force
      Cheers
      Dean

      Programming these days takes more than a lone avenger with a compiler. - sam
      A Standard for the Transmission of IP Datagrams on Avian Carriers
        The monastery collapses discussion nodes when they get too deep. Responding here is not a problem for those reading this thread as the nodes *will* collapse.

        Anyhow, you need to switch into c:/.cpan and run the test suite, see what fails, you won't have as much control from CPAN.pm. make, make test, make install. If you are *very* brave, you might be able to skip "make test" -- but I don't recommend it.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://335325]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2014-12-22 05:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (110 votes), past polls