why copy it to the new location? Why not just rename the file into the new location and do it all at once?
The move (from File::Copy) which the OP was using is essentially a rename that also works across file system boundaries. With source and destination being on the same file system, it simply does a rename under the hood. With different file systems, it copies the file to the destination and deletes the source.
In other words, it's more flexible in case this should be required. Otherwise, it's the same anyway, i.e. a rename.
In reply to Re^6: Delete files if they match help!
by Anonyrnous Monk
in thread Delete files if they match help!
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |