"Portability" between platforms is the strongest argument in favour of File::Copy.
"Portability" on the same platform (as in "behave the same
as other applications do") is a strong argument in favour of
using cp.
Personally, I favour 'rename' for renaming files within the
same filesystem, 'system mv' for moving files over filesystem
boundaries, and 'system cp' for copying files. My main beef
I have against File::Copy is that it doesn't it doesn't
respect execution bits. Furthermore, 'cp' (and 'mv') can take
multiple arguments (moving or copying a bunch of files into
a directory), and options (-a, -f, -R). Oh, and the last
argument of 'cp' can be a directory, which I find extremely
useful. Perhaps File::Copy::copy can too, but not according
to its manual page.
On a more abstract level, why are you trying to convince
your coworkers to stop using system? You can't even come
up with reasons they should - you are asking here for
arguments in your favour! If you can't find convincing arguments yourself, it may be a sign you are not fighthing
a worthwhile battle.
Abigail
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.