<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Wed, 10 Jun 2026 08:35:02 +0000</lastBuildDate>
    <item>
      <title>(Perl) Process quoted text differently - deepsoul</title>
      <link>https://snipplr.com/view/65684/process-quoted-text-differently</link>
      <description>&lt;p&gt;This Perl snippet shows how to separate quoted parts from a text in order to process quoted and unquoted parts separately.  For example, you could expand variables or wildcards only in the unquoted part.  Then the different processed parts are put together again.&#13;
&#13;
That a marker character "\x01" is used to mark the position of the quoted passages is a bit ugly, but on the other hand the single line of code putting the text together again is very elegant and shows off what Perl can do!&lt;/p&gt;</description>
      <pubDate>Mon, 18 Jun 2012 05:00:57 UTC</pubDate>
      <guid>https://snipplr.com/view/65684/process-quoted-text-differently</guid>
    </item>
    <item>
      <title>(Perl) Short-circuited Perl grep - deepsoul</title>
      <link>https://snipplr.com/view/56382/shortcircuited-perl-grep</link>
      <description>&lt;p&gt;To check the existence of an element in a Perl array with specific properties, one tends to use `grep`.  But this is inefficient because `grep` always checks each element. (Even in scalar context it returns the number of matching elements.)  The following function aborts after the first find.&lt;/p&gt;</description>
      <pubDate>Mon, 11 Jul 2011 06:34:41 UTC</pubDate>
      <guid>https://snipplr.com/view/56382/shortcircuited-perl-grep</guid>
    </item>
    <item>
      <title>(Perl) Downgrade Visual Studio project - deepsoul</title>
      <link>https://snipplr.com/view/29986/downgrade-visual-studio-project</link>
      <description>&lt;p&gt;Some (all?) Visual Studio projects can be opened with older versions without problems once their version numbers have been reduced.  The following Perl script does this; it also recurses over the projects contained in a project folder (.sln) file.  It saves you upgrading all your installations.&lt;/p&gt;</description>
      <pubDate>Thu, 18 Mar 2010 15:33:24 UTC</pubDate>
      <guid>https://snipplr.com/view/29986/downgrade-visual-studio-project</guid>
    </item>
    <item>
      <title>(Perl) Add array elements to hash set - deepsoul</title>
      <link>https://snipplr.com/view/19709/add-array-elements-to-hash-set</link>
      <description>&lt;p&gt;Perl hash sets are hashes used to represent sets.  Their keys are the set elements, and the corresponding values are just 1.  For keys that are not set elements, the hash will return undef, equivalent to false.&#13;
&#13;
Adding a whole array to a hash set is often useful, but how to do it is slightly tricky and not widely known.  Here goes...&lt;/p&gt;</description>
      <pubDate>Mon, 14 Sep 2009 16:36:50 UTC</pubDate>
      <guid>https://snipplr.com/view/19709/add-array-elements-to-hash-set</guid>
    </item>
    <item>
      <title>(Perl) Time calculator - deepsoul</title>
      <link>https://snipplr.com/view/18027/time-calculator</link>
      <description>&lt;p&gt;Use this to add up your overtime.  May not be suited for processing untrusted input (e.g. as a CGI script), as the input check is rather rudimentary.&lt;/p&gt;</description>
      <pubDate>Fri, 07 Aug 2009 12:13:11 UTC</pubDate>
      <guid>https://snipplr.com/view/18027/time-calculator</guid>
    </item>
  </channel>
</rss>
