Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Presumably, the system call has some process creation overhead, yet I think that system has higher readability.
I think in mixed environments, the case for File::Copy is obvious. There may also be a security reason to avoid calls to system in shared-user environments; also if search path management is poor (e.g., someone sets up a bad cron environment) then File::Copy can be necessitated. I am working in a secure environment where path management should be second nature.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File::Copy or system
by CountZero (Bishop) on Sep 28, 2011 at 13:38 UTC | |
|
Re: File::Copy or system
by Marshall (Canon) on Sep 28, 2011 at 17:32 UTC | |
|
Re: File::Copy or system
by Riales (Hermit) on Sep 28, 2011 at 17:26 UTC | |
by Marshall (Canon) on Oct 03, 2011 at 23:58 UTC | |
|
Re: File::Copy or system
by pvaldes (Chaplain) on Sep 28, 2011 at 22:23 UTC | |
|
Re: File::Copy or system
by repellent (Priest) on Sep 30, 2011 at 06:30 UTC |