<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Beutelevision &#187; typo perl error</title>
	<atom:link href="http://beutelevision.com/blog2/tags/typo-perl-error/feed/" rel="self" type="application/rss+xml" />
	<link>http://beutelevision.com/blog2</link>
	<description>by Thomas Beutel</description>
	<lastBuildDate>Fri, 14 Oct 2011 19:13:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='beutelevision.com' port='80' path='/blog2/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Useless use of private variable in void context (Perl)</title>
		<link>http://beutelevision.com/blog2/2008/08/01/useless-use-of-private-variable-in-void-context-perl/</link>
		<comments>http://beutelevision.com/blog2/2008/08/01/useless-use-of-private-variable-in-void-context-perl/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 17:55:49 +0000</pubDate>
		<dc:creator>Thomas Beutel</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[typo perl error]]></category>

		<guid isPermaLink="false">http://beutelevision.com/blog2/?p=97</guid>
		<description><![CDATA[Can you see what is wrong with this Perl code snippet?
      foreach my $cat (@$categories) {
        if ($cat->{col} == $column and $cat=>{pos} == $position) {
          return $cat;
        [...]]]></description>
			<content:encoded><![CDATA[<p>Can you see what is wrong with this Perl code snippet?</p>
<p><code>      foreach my $cat (@$categories) {<br />
        if ($cat->{col} == $column and $cat=>{pos} == $position) {<br />
          return $cat;<br />
        }<br />
      }<br />
</code></p>
<p>It gets the &#8220;Useless use of private variable in void context&#8221; at the last brace. Well, it took me a while, but it was the equal sign in $cat=>{pos} which should be $cat->{pos}. Worse, I copied and pasted this code somewhere else, which doubled the problem. (Yes I know, all copying and pasting is evil&#8211;I get it!)</p>
<p>In any case, <a href="http://www.perlmonks.org/?node_id=267730">this comment</a> on Perlmonks was helpful, suggesting to look for typos backward from the point of the error. Yup, that&#8217;s exactly what it was.</p>
]]></content:encoded>
			<wfw:commentRss>http://beutelevision.com/blog2/2008/08/01/useless-use-of-private-variable-in-void-context-perl/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

