mce has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File::Copy versus cp/mv
by Abigail-II (Bishop) on Oct 01, 2003 at 15:59 UTC | |
|
Re: File::Copy versus cp/mv
by Aristotle (Chancellor) on Oct 01, 2003 at 16:49 UTC | |
|
Re: File::Copy versus cp/mv
by dragonchild (Archbishop) on Oct 01, 2003 at 16:55 UTC | |
|
Re: File::Copy versus cp/mv
by vek (Prior) on Oct 01, 2003 at 19:15 UTC | |
|
Re: File::Copy versus cp/mv
by samtregar (Abbot) on Oct 02, 2003 at 05:29 UTC | |
by Aristotle (Chancellor) on Oct 02, 2003 at 06:50 UTC | |
|
Re: File::Copy versus cp/mv
by ed (Initiate) on Jan 02, 2008 at 14:09 UTC |