>>>>> "Mulander" == Mulander  <[EMAIL PROTECTED]> writes:

Mulander> Why can't you use perl's built in rename(); function ? I think it
Mulander> would be safer.

File::Copy::mv *does* use the built-in rename() if it can.
But rename() can't go across mounted filesystem boundaries, so "mv"
calls out to the O/S rename command (mv on unix, rename on windows)
to do the moving if the internal rename fails.

Or, this is what I remember, having had too little sleep.

In essence, File::Copy::cp emulates unix "cp" as best it can.  Ditto "mv".

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to