in reply to Re^2: exec, system, or backticks
in thread exec, system, or backticks
I'm not sure about the performance differences between backticks and the system call. I do know you don't want exec because it essentially replaces the script process with the new process of the exec call. There would be no way for your next line to be reached.
Are you benchmarking the spawning of processes here? What's up? -ben (perlcapt)
UPDATE:
I came across this Spawing other programs in Perl which might help. The big difference it useability between backticks and system() is what they return. Backticks return the stdout of the spawned process, and system() returns the exit code. -ben
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re^4: exec, system, or backticks
by merlyn (Sage) on Oct 20, 2004 at 16:20 UTC | |
|
Re^4: exec, system, or backticks
by tc1364 (Beadle) on Oct 20, 2004 at 16:33 UTC | |
by perlcapt (Pilgrim) on Oct 20, 2004 at 20:01 UTC | |
|
Re^4: exec, system, or backticks
by tc1364 (Beadle) on Oct 20, 2004 at 16:39 UTC |