<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/perl/tags/array</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 19 Jun 2013 14:03:23 GMT</pubDate>
<item>
<title>(Perl) Process PHP-style array (square brackets) from HTML form in Perl CGI - ptepper</title>
<link>http://snipplr.com/view/21336/process-phpstyle-array-square-brackets-from-html-form-in-perl-cgi/</link>
<description><![CDATA[ <p>This is inspired by this http://www.cgi101.com/book/ch5/text.html so I'm using a similar example. In PHP you can combine a set of checkboxes into an array using square brackets like this:


       Red
       Green
       Blue
       Gold
      


PHP does not do this automatically but it's pretty simple to do if you filter by regular expressions.</p> ]]></description>
<pubDate>Fri, 16 Oct 2009 16:19:42 GMT</pubDate>
<guid>http://snipplr.com/view/21336/process-phpstyle-array-square-brackets-from-html-form-in-perl-cgi/</guid>
</item>
<item>
<title>(Perl) Add array elements to hash set - deepsoul</title>
<link>http://snipplr.com/view/19709/add-array-elements-to-hash-set/</link>
<description><![CDATA[ <p>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.

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...</p> ]]></description>
<pubDate>Mon, 14 Sep 2009 16:36:50 GMT</pubDate>
<guid>http://snipplr.com/view/19709/add-array-elements-to-hash-set/</guid>
</item>
<item>
<title>(Perl) Push a new member into an array that is contained in a hash value - noah</title>
<link>http://snipplr.com/view/4617/push-a-new-member-into-an-array-that-is-contained-in-a-hash-value/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 16 Jan 2008 14:12:05 GMT</pubDate>
<guid>http://snipplr.com/view/4617/push-a-new-member-into-an-array-that-is-contained-in-a-hash-value/</guid>
</item>
<item>
<title>(Perl) declare an array - noah</title>
<link>http://snipplr.com/view/3140/declare-an-array/</link>
<description><![CDATA[ <p>Perl is so damn elegant sometimes</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 23:17:45 GMT</pubDate>
<guid>http://snipplr.com/view/3140/declare-an-array/</guid>
</item>
<item>
<title>(Perl) dump the contents of a data structure - noah</title>
<link>http://snipplr.com/view/3138/dump-the-contents-of-a-data-structure/</link>
<description><![CDATA[ <p>hashes in Perl can be so elegant</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 23:08:28 GMT</pubDate>
<guid>http://snipplr.com/view/3138/dump-the-contents-of-a-data-structure/</guid>
</item>
</channel>
</rss>