in reply to Re^2: Why isn't there a "copy" function?
in thread Why isn't there a "copy" function?
If you like to be surprised or use non-flexible API, you'd use File::Copy. If you're smart, you'd use system cp. Things that are easy with system cp and awkward with File::Copy include:
cp file1 file2 dir
cp -r dir1 dir2
cp -p file1 file2
cp exe1 exe2
Not to mention that I can stick an 'r' or an 's' in front of it, and copy from one machine to another.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Why isn't there a "copy" function?
by eserte (Deacon) on Sep 10, 2004 at 13:47 UTC | |
by Anonymous Monk on Sep 10, 2004 at 14:19 UTC | |
by eserte (Deacon) on Sep 10, 2004 at 19:59 UTC |