Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Pure Perl or the toolkit?

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


in reply to Pure Perl or the toolkit?

Hi!

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...

Michele.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-03-28 14:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found