On 6/7/07, Perl WANNABE <[EMAIL PROTECTED]> wrote:

I'm trying to copy a couple of DBM files from a disk to a RAM disk,
one of the files is 500M the other quite small.

Some DBM implementations, if the filesystem supports doing so, will
create files with "holes" in them; that is, the file may have
arbitrarily long gaps in which there's no data. You can even have a
file that seems larger than the disk it's stored upon.

Whether I use File::Copy or I roll my own copy by reading and writing the
file the filesystem fills up... If I use system (cp from to) I don't have a
problem.

It sounds as if your cp knows how to handle the holes, but File::Copy
isn't so smart. It may be worth filing a bug report over this; even if
File::Copy isn't fixed, its documentation should mention this.

Cheers!

--Tom Phoenix
Stonehenge Perl Training

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


Reply via email to