<?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>Netscraps &#187; perl</title>
	<atom:link href="http://blog.netscraps.com/category/perl/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.netscraps.com</link>
	<description>anything that catches my attention.</description>
	<lastBuildDate>Sun, 25 Jul 2010 16:32:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Prototype mismatch: sub main::head ($) vs none</title>
		<link>http://blog.netscraps.com/perl/prototype-mismatch-sub-mainhead-vs-none.html</link>
		<comments>http://blog.netscraps.com/perl/prototype-mismatch-sub-mainhead-vs-none.html#comments</comments>
		<pubDate>Thu, 09 Jul 2009 18:12:45 +0000</pubDate>
		<dc:creator>netscraps</dc:creator>
				<category><![CDATA[bugs]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://blog.netscraps.com/uncategorized/prototype-mismatch-sub-mainhead-vs-none.html</guid>
		<description><![CDATA[Turns out that when you use the LWP::Simple &#038; CGI modules together in a Perl script, each has a conflicting head() function that throws that error. Who knew? Everyone who didn&#8217;t take the time to read the CAVEAT note at the bottom of the LWP::Simple docs, apparently: Note that if you are using both LWP::Simple [...]]]></description>
			<content:encoded><![CDATA[<p>Turns out that when you use the LWP::Simple &#038; CGI modules together in a Perl script, each has a conflicting head() function that throws that error. Who knew? Everyone who didn&#8217;t take the time to read the CAVEAT note at the bottom of the LWP::Simple docs, apparently:</p>
<blockquote><p><em>Note that if you are using both LWP::Simple and the very popular CGI.pm module, you may be importing a <code>head</code> function from each module, producing a warning like &#8220;Prototype mismatch: sub main::head ($) vs none&#8221;. Get around this problem by just not importing LWP::Simple&#8217;s <code>head</code> function, like so:</em></p>
<pre><em>use LWP::Simple qw(!head);
use CGI qw(:standard);  # then only CGI.pm defines a head()</em></pre>
<p><em>Then if you do need LWP::Simple&#8217;s <code>head</code> function, you can just call it as <code>LWP::Simple::head($url)</code>.</em></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.netscraps.com/perl/prototype-mismatch-sub-mainhead-vs-none.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
