<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Anatoliy Belsky - Perl</title>
    <link>http://belsky.info/</link>
    <description>That's what I'm thinking ...  </description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.5.5 - http://www.s9y.org/</generator>
    
    

<item>
    <title>Functions vs. inline code</title>
    <link>http://belsky.info/archives/21-Functions-vs.-inline-code.html</link>
            <category>Perl</category>
            <category>PHP5</category>
            <category>Python</category>
    
    <comments>http://belsky.info/archives/21-Functions-vs.-inline-code.html#comments</comments>
    <wfw:comment>http://belsky.info/wfwcomment.php?cid=21</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://belsky.info/rss.php?version=2.0&amp;type=comments&amp;cid=21</wfw:commentRss>
    

    <author>nospam@example.com (Anatoliy Belsky)</author>
    <content:encoded>
    Recently I had a little discussion about our style guide with one of the co-workers. And the matter was concerning the line length. Most default is to limit the line length with 79-85 characters - because of terminals, printing etc. But an other question took my head in the middle of the conversation: limiting the line length would mean for example to encapsulate deep included blocks of the code into functions - sounds not bad, but ... &lt;br /&gt;
 &lt;br /&gt;&lt;a href=&quot;http://belsky.info/archives/21-Functions-vs.-inline-code.html#extended&quot;&gt;Continue reading &quot;Functions vs. inline code&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sun, 22 Jun 2008 16:56:22 +0200</pubDate>
    <guid isPermaLink="false">http://belsky.info/archives/21-guid.html</guid>
    
</item>
<item>
    <title>Map objects recursive in perl</title>
    <link>http://belsky.info/archives/16-Map-objects-recursive-in-perl.html</link>
            <category>Perl</category>
    
    <comments>http://belsky.info/archives/16-Map-objects-recursive-in-perl.html#comments</comments>
    <wfw:comment>http://belsky.info/wfwcomment.php?cid=16</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://belsky.info/rss.php?version=2.0&amp;type=comments&amp;cid=16</wfw:commentRss>
    

    <author>nospam@example.com (Anatoliy Belsky)</author>
    <content:encoded>
    One interesting thing I&#039;ve got stucked on - if we have some multilevel arrays/hashes (which aren&#039;t the same in perl), there is no standard way to change all the object&#039;s values. The only thing I&#039;ve found usefull is &lt;a href=&quot;http://perldoc.perl.org/functions/map.html&quot;&gt;map&lt;/a&gt; function, which nevertheless works only for map arrays.  However, it could be very usefull, to have a possibility to change each scalar element of some multilevel object. For example, if you ever used XML::Simple, you could observe the following behavior with values, which contain new lines.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;b&gt;XML:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;pre class=&quot;xml&quot; style=&quot;color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;padding-left: 3px;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;lt;root&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
    &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;lt;elem&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;asdf&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;lt;/elem&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;lt;/root&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;
 &lt;br /&gt;&lt;a href=&quot;http://belsky.info/archives/16-Map-objects-recursive-in-perl.html#extended&quot;&gt;Continue reading &quot;Map objects recursive in perl&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sat, 08 Mar 2008 17:19:33 +0100</pubDate>
    <guid isPermaLink="false">http://belsky.info/archives/16-guid.html</guid>
    
</item>
<item>
    <title>I know the future weather</title>
    <link>http://belsky.info/archives/9-I-know-the-future-weather.html</link>
            <category>Perl</category>
            <category>Web</category>
    
    <comments>http://belsky.info/archives/9-I-know-the-future-weather.html#comments</comments>
    <wfw:comment>http://belsky.info/wfwcomment.php?cid=9</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://belsky.info/rss.php?version=2.0&amp;type=comments&amp;cid=9</wfw:commentRss>
    

    <author>nospam@example.com (Anatoliy Belsky)</author>
    <content:encoded>
    A simply and cool script for the weather forecast. May be even correct &lt;img src=&quot;http://belsky.info/templates/default-my/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
.. thanks to Weather::Underground perl module&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;b&gt;PERL:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;pre class=&quot;perl&quot; style=&quot;color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;padding-left: 3px;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#!/usr/bin/perl&lt;/span&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;use&lt;/span&gt; Weather::&lt;span style=&quot;color: #006600;&quot;&gt;Underground&lt;/span&gt;;&lt;/pre&gt;&lt;/div&gt; &lt;br /&gt;&lt;a href=&quot;http://belsky.info/archives/9-I-know-the-future-weather.html#extended&quot;&gt;Continue reading &quot;I know the future weather&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sun, 23 Dec 2007 23:16:11 +0100</pubDate>
    <guid isPermaLink="false">http://belsky.info/archives/9-guid.html</guid>
    
</item>
<item>
    <title>Stop image hotlinking with Perl</title>
    <link>http://belsky.info/archives/5-Stop-image-hotlinking-with-Perl.html</link>
            <category>Perl</category>
            <category>Web</category>
    
    <comments>http://belsky.info/archives/5-Stop-image-hotlinking-with-Perl.html#comments</comments>
    <wfw:comment>http://belsky.info/wfwcomment.php?cid=5</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://belsky.info/rss.php?version=2.0&amp;type=comments&amp;cid=5</wfw:commentRss>
    

    <author>nospam@example.com (Anatoliy Belsky)</author>
    <content:encoded>
    Sometimes there are things, which can bring everyone to the rage accumulation. For example if traffic of the server is exceeded because of hotlinking and it&#039;s measured at least in hundreds of megabytes. | So, for me this is only a story about someone else because I&#039;m always using the following script, if the traffic of the server is not unlimited. I&#039;ve used Perl to convert or resize images, because according my measurements Perl was doing this at least twice as fast as PHP and more qualitatively as PHP (this concerns anyhow PHP4). Only the one  weakness can prevent you from using this script - it works with HTTP_REFERER server variable and since some browsers, firewalls or proxies for any reasons don&#039;t sending this field to the webserver, you can punish innocent people, who want only to see your images. But the advantages are evident - you can place your images out of the web space and show them only if they has been called from your web site. Lets go on. &lt;br /&gt;&lt;a href=&quot;http://belsky.info/archives/5-Stop-image-hotlinking-with-Perl.html#extended&quot;&gt;Continue reading &quot;Stop image hotlinking with Perl&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sun, 23 Dec 2007 21:04:48 +0100</pubDate>
    <guid isPermaLink="false">http://belsky.info/archives/5-guid.html</guid>
    
</item>

</channel>
</rss>
