I am trying to convince my coworkers to stop using
tosystem("cp $foo $bar"); system("mv $foo $bar");
But they just don't listen. What are good arguments to convince them. We only develop on/for unix, so portability is not a good reason.use File::Copy; copy($foo,$bar); move($foo,$bar);
I though of:
1. The returncodes are correct (1 => OK, 0 => NOK)
2. It prevents forking a new process.
But what else??
---------------------------
Dr. Mark Ceulemans
Senior Consultant
BMC, Belgium
In reply to File::Copy versus cp/mv by mce
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |