<?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"
	>
<channel>
	<title>Comments on: PHP vs Perl part II</title>
	<atom:link href="http://iron.randombase.com/2008/07/15/php-vs-perl-part-ii/feed/" rel="self" type="application/rss+xml" />
	<link>http://iron.randombase.com/2008/07/15/php-vs-perl-part-ii/</link>
	<description></description>
	<pubDate>Thu, 20 Nov 2008 11:44:23 +0000</pubDate>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>By: Iron</title>
		<link>http://iron.randombase.com/2008/07/15/php-vs-perl-part-ii/#comment-690</link>
		<dc:creator>Iron</dc:creator>
		<pubDate>Wed, 15 Oct 2008 11:44:27 +0000</pubDate>
		<guid isPermaLink="false">http://iron.randombase.com/?p=97#comment-690</guid>
		<description>Honestly, the Perl code is much easier on the eyes :)</description>
		<content:encoded><![CDATA[<p>Honestly, the Perl code is much easier on the eyes :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dblackshell</title>
		<link>http://iron.randombase.com/2008/07/15/php-vs-perl-part-ii/#comment-689</link>
		<dc:creator>dblackshell</dc:creator>
		<pubDate>Wed, 15 Oct 2008 11:37:47 +0000</pubDate>
		<guid isPermaLink="false">http://iron.randombase.com/?p=97#comment-689</guid>
		<description>$handle = fopen('file', 'r');
echo fread($handle, filesize('file'));

2 lines. :)
you don't close the handle in perl :P</description>
		<content:encoded><![CDATA[<p>$handle = fopen(&#8217;file&#8217;, &#8216;r&#8217;);<br />
echo fread($handle, filesize(&#8217;file&#8217;));</p>
<p>2 lines. :)<br />
you don&#8217;t close the handle in perl :P</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: luke</title>
		<link>http://iron.randombase.com/2008/07/15/php-vs-perl-part-ii/#comment-685</link>
		<dc:creator>luke</dc:creator>
		<pubDate>Tue, 07 Oct 2008 10:26:32 +0000</pubDate>
		<guid isPermaLink="false">http://iron.randombase.com/?p=97#comment-685</guid>
		<description>For file reading ( and so for any other thing ) you can use a function to encapsulate that complexity, like:

function readTextFile( $filepath ){

$fd = fopen($filepath, 'r'); //or die('Can't read file: ' . $filepath);

while(!feof($fd)){
$buffer .= fgets($fd, 4096);
}
fclose($fd);

return $buffer;
}
____________________

...and then have only one line of code 

    print(readTextFile($path));

or pass an entire file to a String array: $myArray = file($path);

with that built-in function. This is no complex at all....</description>
		<content:encoded><![CDATA[<p>For file reading ( and so for any other thing ) you can use a function to encapsulate that complexity, like:</p>
<p>function readTextFile( $filepath ){</p>
<p>$fd = fopen($filepath, &#8216;r&#8217;); //or die(&#8217;Can&#8217;t read file: &#8216; . $filepath);</p>
<p>while(!feof($fd)){<br />
$buffer .= fgets($fd, 4096);<br />
}<br />
fclose($fd);</p>
<p>return $buffer;<br />
}<br />
____________________</p>
<p>&#8230;and then have only one line of code </p>
<p>    print(readTextFile($path));</p>
<p>or pass an entire file to a String array: $myArray = file($path);</p>
<p>with that built-in function. This is no complex at all&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP vs Perl (final) &#124; /dev/iron</title>
		<link>http://iron.randombase.com/2008/07/15/php-vs-perl-part-ii/#comment-589</link>
		<dc:creator>PHP vs Perl (final) &#124; /dev/iron</dc:creator>
		<pubDate>Wed, 27 Aug 2008 21:03:59 +0000</pubDate>
		<guid isPermaLink="false">http://iron.randombase.com/?p=97#comment-589</guid>
		<description>[...] post I discussed the sick amount of functions in PHP compared to Perl, in the second one the reason why writing Perl applications goes faster and now in this third and final post, I'll discuss external [...]</description>
		<content:encoded><![CDATA[<p>[...] post I discussed the sick amount of functions in PHP compared to Perl, in the second one the reason why writing Perl applications goes faster and now in this third and final post, I&#8217;ll discuss external [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Iron</title>
		<link>http://iron.randombase.com/2008/07/15/php-vs-perl-part-ii/#comment-482</link>
		<dc:creator>Iron</dc:creator>
		<pubDate>Sun, 27 Jul 2008 08:37:34 +0000</pubDate>
		<guid isPermaLink="false">http://iron.randombase.com/?p=97#comment-482</guid>
		<description>I have almost zero experience using shopping carts, but I've seen a lot of websites using osCommerce, but also Squirrelcart. I think you won't be needing any PHP knowledge for using them.</description>
		<content:encoded><![CDATA[<p>I have almost zero experience using shopping carts, but I&#8217;ve seen a lot of websites using osCommerce, but also Squirrelcart. I think you won&#8217;t be needing any PHP knowledge for using them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dobbin</title>
		<link>http://iron.randombase.com/2008/07/15/php-vs-perl-part-ii/#comment-481</link>
		<dc:creator>Dobbin</dc:creator>
		<pubDate>Sun, 27 Jul 2008 01:41:35 +0000</pubDate>
		<guid isPermaLink="false">http://iron.randombase.com/?p=97#comment-481</guid>
		<description>Okay. You said it. PHP is the most powerful language for websites, but how would I know, I don't write code.  Like html, I'd learn it as I go along.

I want to switch to an PHP website with logins, cart, and stuff, stuff, stuff. So I'm asking - and people are telling me - to us osCommerce. 

Tell me what to use.</description>
		<content:encoded><![CDATA[<p>Okay. You said it. PHP is the most powerful language for websites, but how would I know, I don&#8217;t write code.  Like html, I&#8217;d learn it as I go along.</p>
<p>I want to switch to an PHP website with logins, cart, and stuff, stuff, stuff. So I&#8217;m asking - and people are telling me - to us osCommerce. </p>
<p>Tell me what to use.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
