|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re^4: copy excel sheets to a different workbookby blazar (Canon) |
| on Nov 16, 2008 at 09:33 UTC ( [id://723904]=note: print w/replies, xml ) | Need Help?? |
|
While your points are good and valid, I'd like to point out there is is a good reason to invoke cp via system instead of using File::Copy: The latter doesn't preserve file permissions on Unix and Linux. I personally believe this is very well known, with Abigail often advocating its use. Another issue I've "always" been wondering about has to do with sparse files: if I create one and then copy it with cp, IIRC the target file will also be sparse and a quick experiment now confirms my memory:
It takes some time (which further increases with the size of the file) and I don't have the slightest idea of how it manages to do so... (perhaps some fiddling with strace(1) may help, but I should be more confident with it.) But it succeeds. How does File::Copy behave in this respect? I believe it will create a file with an actual disk usage comparable to its own size, filled with nulls, ain't it? Granted, I would regard this as a minor but not completely irrelevant issue.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||