The stupid question is the question not asked | |
PerlMonks |
Re: Re: Re: system call vs. back quotesby ton (Friar) |
on Jan 25, 2002 at 05:34 UTC ( [id://141399]=note: print w/replies, xml ) | Need Help?? |
The Perl Cookbook claims (in the Discussion 16.1) that there is overhead associated with the backticks that does not exist with the system call. I imagine perl does the openpipe/fork combination to get the STDOUT from the backticks; if you don't need the output (as in the tar example above), it is thus more efficient to use system.
-Ton
In Section
Seekers of Perl Wisdom
|
|