<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>《Perl:关于标准输出STDOUT和标准错误STDERR》的评论</title>
	<atom:link href="http://liucheng.name/872/feed/" rel="self" type="application/rss+xml" />
	<link>http://liucheng.name/872/</link>
	<description>_SEO&#124;摄影&#124;WordPress&#124;博客</description>
	<lastBuildDate>Mon, 21 May 2012 08:33:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>作者：jerryxu</title>
		<link>http://liucheng.name/872/#comment-20105</link>
		<dc:creator>jerryxu</dc:creator>
		<pubDate>Mon, 18 Oct 2010 09:35:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.liucheng.name/?p=872#comment-20105</guid>
		<description>C＋＋手册里有这句话：
Although generally both stdout and stderr are associated with the same console output, applications may differentiate between what is sent to stdout and what to stderr for the case that one of them is redirected. For example, it is frequent to redirect the regular output of a console program (stdout) to a file while expecting the error messages to keep appearing in the console screen.

可以解释在屏幕同时看到err message的现象。。。

% perl -e &#039;print STDOUT &quot;Hello, World!\n&quot;; print STDERR &quot;Error\n&quot;;&#039; &gt;err.txt</description>
		<content:encoded><![CDATA[<p>C＋＋手册里有这句话：<br />
Although generally both stdout and stderr are associated with the same console output, applications may differentiate between what is sent to stdout and what to stderr for the case that one of them is redirected. For example, it is frequent to redirect the regular output of a console program (stdout) to a file while expecting the error messages to keep appearing in the console screen.</p>
<p>可以解释在屏幕同时看到err message的现象。。。</p>
<p>% perl -e 'print STDOUT "Hello, World!\n"; print STDERR "Error\n";' &gt;err.txt</p>
]]></content:encoded>
	</item>
</channel>
</rss>

