[svn:perlfaq] r8105 - perlfaq/trunk

[email protected] Sat, 25 Nov 2006 13:06:31 -0800 (PST)
Newsgroups perl.cvs.perlfaq
Message-ID <[email protected]>
Author: comdog
Date: Sat Nov 25 13:06:31 2006
New Revision: 8105

Modified:
   perlfaq/trunk/perlfaq8.pod

Log:
* What's wrong with using backticks in a void context?
	+ clarified system( "cat ..." ) example to note that output
	goes to wherever stdout is. 
	+ Fix comes from Eric Schwartz.


Modified: perlfaq/trunk/perlfaq8.pod
==============================================================================
--- perlfaq/trunk/perlfaq8.pod	(original)
+++ perlfaq/trunk/perlfaq8.pod	Sat Nov 25 13:06:31 2006
@@ -804,8 +804,9 @@
 	system("cat /etc/termcap") == 0
 	or die "cat program failed!";
 
-which will get the output quickly (as it is generated, instead of only
-at the end) and also check the return value.
+which will echo the cat command's output as it is generated, instead
+of waiting until the program has completed to print it out. It also
+checks the return value.
 
 C<system> also provides direct control over whether shell wildcard
 processing may take place, whereas backticks do not.