Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Pure Perl or the toolkit?

by arthas (Hermit)
on Aug 20, 2003 at 14:33 UTC ( #285206=note: print w/replies, xml ) Need Help??

in reply to Pure Perl or the toolkit?


It seems that under Unix it's not possible to preserve file attributes using File::Copy. The documentation somehow explains that:

File::Copy also provides the "syscopy" routine, which copies the file specified in the first parameter to the file specified in the second parameter, preserving OS-specific attributes and file structure. For Unix systems, this is equivalent to the simple "copy" routine, which doesn't preserve OS-specific attributes. For VMS systems, this calls the "rmscopy" routine (see below). For OS/2 systems, this calls the "syscopy" XSUB directly. For Win32 systems, this calls "Win32::CopyFile".

So, there's syscopy, but it won't do anything different from "copy" useful under Unix. So, it might not be possible to go with the pure perl solution this time...


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2019-05-27 06:10 GMT
Find Nodes?
    Voting Booth?
    Do you enjoy 3D movies?

    Results (154 votes). Check out past polls.

    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!