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

Howdy,

I have a little complication with the Perl File::copy module running on XP.

When you run a file copy on XP from an encrypted directory and the intended destination Partition does not support Encryption, a File::copy fails because the system requires an additional parameter.

Has anyone experienced this and found a work around or know of a new Copy.pm out there in the wild that could help?
Any advice, help, knowledge or wisdom would be greatly appreciated.

Cheers

Replies are listed 'Best First'.
Re: File::Copy & XP Encrypted files
by Zaxo (Archbishop) on Jun 19, 2003 at 09:12 UTC

    I don't have anything to test this on, but it might work to copy from a file handle:

    use File::Copy; { open local(*ORIG), '<', '/path/to/encrypted.foo' or die $!; copy \*ORIG, '/path/to/plain.foo'; close ORIG; }
    That is just a wild guess.

    After Compline,
    Zaxo

      Thanks Worked like a dream... Cheers