<?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: PHP: explode() vs. split()</title>
	<atom:link href="http://blog.brianhartsock.com/2007/06/11/php-explode-vs-split/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.brianhartsock.com/2007/06/11/php-explode-vs-split/</link>
	<description>The exciting life of a software developer and nerd</description>
	<pubDate>Tue, 06 Jan 2009 10:00:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: chhh</title>
		<link>http://blog.brianhartsock.com/2007/06/11/php-explode-vs-split/comment-page-1/#comment-542</link>
		<dc:creator>chhh</dc:creator>
		<pubDate>Sat, 13 Dec 2008 21:11:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brianhartsock.com/2007/06/11/php-explode-vs-split/#comment-542</guid>
		<description>@result_array = ("haha&#124;&#124;hoho", "mama&#124;&#124;papa", "qwer&#124;&#124;asdf");

foreach ( @result_array ) {
   print split(/\&#124;\&#124;/, $_), "\n";
}</description>
		<content:encoded><![CDATA[<p>@result_array = (&#8221;haha||hoho&#8221;, &#8220;mama||papa&#8221;, &#8220;qwer||asdf&#8221;);</p>
<p>foreach ( @result_array ) {<br />
   print split(/\|\|/, $_), &#8220;\n&#8221;;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chaser</title>
		<link>http://blog.brianhartsock.com/2007/06/11/php-explode-vs-split/comment-page-1/#comment-218</link>
		<dc:creator>Chaser</dc:creator>
		<pubDate>Thu, 21 Jun 2007 14:03:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brianhartsock.com/2007/06/11/php-explode-vs-split/#comment-218</guid>
		<description>How will the following PHP code look like in PERL? 
Code: 

foreach ($arrResults as $result) 
{ 
   print_r(explode('&#124;&#124;', $result)); 
   echo("");    
} 
 

======================= 

This is what I have, but it's not working. 
Code: 

@result_array = $result; 

foreach $line ( @result_array ) 
{ 

   $line2 = split('\&#124;\&#124;', $line); 
   print "$line2\n"; 
    
}</description>
		<content:encoded><![CDATA[<p>How will the following PHP code look like in PERL?<br />
Code: </p>
<p>foreach ($arrResults as $result)<br />
{<br />
   print_r(explode(&#8217;||&#8217;, $result));<br />
   echo(&#8221;");<br />
} </p>
<p>======================= </p>
<p>This is what I have, but it&#8217;s not working.<br />
Code: </p>
<p>@result_array = $result; </p>
<p>foreach $line ( @result_array )<br />
{ </p>
<p>   $line2 = split(&#8217;\|\|&#8217;, $line);<br />
   print &#8220;$line2\n&#8221;; </p>
<p>}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.630 seconds -->
