<?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>Comments on: Throw out your Perl: One-line aggregation in awk</title>
	<atom:link href="http://www.protocolostomy.com/2009/01/19/throw-out-your-perl-one-line-aggregation-in-awk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.protocolostomy.com/2009/01/19/throw-out-your-perl-one-line-aggregation-in-awk/</link>
	<description>Made with only the finest 1's and 0's</description>
	<lastBuildDate>Wed, 10 Mar 2010 20:02:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jim</title>
		<link>http://www.protocolostomy.com/2009/01/19/throw-out-your-perl-one-line-aggregation-in-awk/comment-page-1/#comment-7806</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Tue, 20 Jan 2009 21:14:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.protocolostomy.com/?p=472#comment-7806</guid>
		<description>Brian-

That&#039;s a good point about context. I look at it as having one more tool in the belt.  Linux/Unix have so many specialized tools at the user&#039;s disposal (as well as more generalized tools like perl, python, ruby, c, et..) that it is a shame to specialize in only one.</description>
		<content:encoded><![CDATA[<p>Brian-</p>
<p>That&#8217;s a good point about context. I look at it as having one more tool in the belt.  Linux/Unix have so many specialized tools at the user&#8217;s disposal (as well as more generalized tools like perl, python, ruby, c, et..) that it is a shame to specialize in only one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Agate</title>
		<link>http://www.protocolostomy.com/2009/01/19/throw-out-your-perl-one-line-aggregation-in-awk/comment-page-1/#comment-7790</link>
		<dc:creator>Agate</dc:creator>
		<pubDate>Tue, 20 Jan 2009 09:50:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.protocolostomy.com/?p=472#comment-7790</guid>
		<description>I don&#039;t think the Perl post is really a flame. But it&#039;s a good example of how you can do the same thing in Perl.

The title is the intentionally-inflammatory &quot;Throw out your Perl,&quot; so is it really surprising that someone felt the need to respond?

To someone familiar with both languages, they are both about equivalently readable. Perl&#039;s &quot;$&quot; are ugly, but then again, awk uses &quot;$&quot; for the column contents, so overall the one-liners seem to be about equally obfuscated to the casual viewer.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think the Perl post is really a flame. But it&#8217;s a good example of how you can do the same thing in Perl.</p>
<p>The title is the intentionally-inflammatory &#8220;Throw out your Perl,&#8221; so is it really surprising that someone felt the need to respond?</p>
<p>To someone familiar with both languages, they are both about equivalently readable. Perl&#8217;s &#8220;$&#8221; are ugly, but then again, awk uses &#8220;$&#8221; for the column contents, so overall the one-liners seem to be about equally obfuscated to the casual viewer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ville vainio</title>
		<link>http://www.protocolostomy.com/2009/01/19/throw-out-your-perl-one-line-aggregation-in-awk/comment-page-1/#comment-7789</link>
		<dc:creator>ville vainio</dc:creator>
		<pubDate>Tue, 20 Jan 2009 09:29:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.protocolostomy.com/?p=472#comment-7789</guid>
		<description>IPython string lists are also handy (and arguably more intuitive than awk) for this:

http://ipython.scipy.org/moin/Cookbook/StringListProcessing

So far, fields() does not support arbitrary separator (whitespace only) but than can be fixed ;-)</description>
		<content:encoded><![CDATA[<p>IPython string lists are also handy (and arguably more intuitive than awk) for this:</p>
<p><a href="http://ipython.scipy.org/moin/Cookbook/StringListProcessing" rel="nofollow">http://ipython.scipy.org/moin/Cookbook/StringListProcessing</a></p>
<p>So far, fields() does not support arbitrary separator (whitespace only) but than can be fixed <img src='http://www.protocolostomy.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rjp</title>
		<link>http://www.protocolostomy.com/2009/01/19/throw-out-your-perl-one-line-aggregation-in-awk/comment-page-1/#comment-7787</link>
		<dc:creator>rjp</dc:creator>
		<pubDate>Tue, 20 Jan 2009 09:01:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.protocolostomy.com/?p=472#comment-7787</guid>
		<description>rjp&gt; cat stocks.txt
ABC,100,12.14,19.12
FOO,100,24.01,17.45
BAR,50,88.90,94.33
BAZ,50,75.65,66.20
NI,23,33.12,43.32
ABC,200,13.12,19.12

The &quot;better&quot; perl version for stocks doesn&#039;t aggregate the profit/loss by stock:

ABC 698
FOO -656
BAR 271.5
BAZ -472.5
NI 234.6
ABC 1200
Net: 1275.6

Then again, the awk version gets it totally wrong for ABC:

FOO -656
ABC 1200
BAZ -472.5
NI 234.6
BAR 271.5
Net: 1275.6</description>
		<content:encoded><![CDATA[<p>rjp&gt; cat stocks.txt<br />
ABC,100,12.14,19.12<br />
FOO,100,24.01,17.45<br />
BAR,50,88.90,94.33<br />
BAZ,50,75.65,66.20<br />
NI,23,33.12,43.32<br />
ABC,200,13.12,19.12</p>
<p>The &#8220;better&#8221; perl version for stocks doesn&#8217;t aggregate the profit/loss by stock:</p>
<p>ABC 698<br />
FOO -656<br />
BAR 271.5<br />
BAZ -472.5<br />
NI 234.6<br />
ABC 1200<br />
Net: 1275.6</p>
<p>Then again, the awk version gets it totally wrong for ABC:</p>
<p>FOO -656<br />
ABC 1200<br />
BAZ -472.5<br />
NI 234.6<br />
BAR 271.5<br />
Net: 1275.6</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: m0j0</title>
		<link>http://www.protocolostomy.com/2009/01/19/throw-out-your-perl-one-line-aggregation-in-awk/comment-page-1/#comment-7782</link>
		<dc:creator>m0j0</dc:creator>
		<pubDate>Tue, 20 Jan 2009 03:07:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.protocolostomy.com/?p=472#comment-7782</guid>
		<description>Great - &#039;cos that&#039;s so much cleaner, shorter, and more intuitive than the awk code, and I can really see why I would never, ever, ever choose anything over perl for anything now. Thanks for that. 

Seriously, those are nice one-liners. I should&#039;ve noted that I also do know, use, and teach perl (only upon request, by gunpoint -- but it happens). The article makes it pretty clear, though, that I&#039;m talking about awk in a particular context, for a given purpose. You Perl hackers should know all about context. It&#039;s not a blanket &quot;awk beats perl&quot; thing - I just think awk is cleaner and easier &lt;strong&gt;for these types of tasks&lt;/strong&gt;. Those people I&#039;ve been able to show awk solutions to, who were using perl, now don&#039;t use perl for those tasks. Not because you can&#039;t do it in perl (duh), but because you don&#039;t have to, and awk is a bit more intuitive for certain tasks. 

I have plenty of other posts I have yet to write about why I hate perl, and why I think it will eventually become the next cobol --  save your flames for those future posts.</description>
		<content:encoded><![CDATA[<p>Great &#8211; &#8216;cos that&#8217;s so much cleaner, shorter, and more intuitive than the awk code, and I can really see why I would never, ever, ever choose anything over perl for anything now. Thanks for that. </p>
<p>Seriously, those are nice one-liners. I should&#8217;ve noted that I also do know, use, and teach perl (only upon request, by gunpoint &#8212; but it happens). The article makes it pretty clear, though, that I&#8217;m talking about awk in a particular context, for a given purpose. You Perl hackers should know all about context. It&#8217;s not a blanket &#8220;awk beats perl&#8221; thing &#8211; I just think awk is cleaner and easier <strong>for these types of tasks</strong>. Those people I&#8217;ve been able to show awk solutions to, who were using perl, now don&#8217;t use perl for those tasks. Not because you can&#8217;t do it in perl (duh), but because you don&#8217;t have to, and awk is a bit more intuitive for certain tasks. </p>
<p>I have plenty of other posts I have yet to write about why I hate perl, and why I think it will eventually become the next cobol &#8212;  save your flames for those future posts.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
