kannan4let has asked for the wisdom of the Perl Monks concerning the following question:

Perl not copy the file which is in use. The file libeay32.dll(This file is used by perl i think so) file is available in the source location and the existing condition in perl works. even though perl not copying the file to the destination(Already libeay32.dll is available in destination, need to replace the newer version). Can anyone suggest to copy it.

Replies are listed 'Best First'.
Re: (OT) Not copy the file
by davido (Cardinal) on Jan 13, 2015 at 21:34 UTC

    Windows probably wouldn't let you overwrite libeay32.dll while the .dll is in use. You may have to boot to safe mode before making the copy, or somehow assure that the dll has not been used prior to replacing it.

    At any rate, this isn't a Perl problem, it's an operating system question. Even if you issued a "copy" command from the Windows Power Shell command prompt you would still discover that the file cannot be overwritten if it's already in use.


    Dave

Re: (OT) Not copy the file
by Corion (Patriarch) on Jan 14, 2015 at 08:31 UTC

    See ExtUtils::Install, which can copy (or prepare to copy) files that are in use. The documentation also tells you how to find out whether you must reboot before the copying takes place.

Re: (OT) Not copy the file
by LanX (Saint) on Jan 13, 2015 at 20:17 UTC