<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Nested Maps in Perl</title>
	<atom:link href="http://curiousprogrammer.wordpress.com/2010/10/04/nested-maps-in-perl/feed/" rel="self" type="application/rss+xml" />
	<link>http://curiousprogrammer.wordpress.com/2010/10/04/nested-maps-in-perl/</link>
	<description>Leveraging Perl and Emacs</description>
	<lastBuildDate>Tue, 07 May 2013 11:25:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: tajuma</title>
		<link>http://curiousprogrammer.wordpress.com/2010/10/04/nested-maps-in-perl/#comment-9228</link>
		<dc:creator><![CDATA[tajuma]]></dc:creator>
		<pubDate>Thu, 07 Jun 2012 10:08:40 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=1287#comment-9228</guid>
		<description><![CDATA[Ouch, something ate half of the perl code in my previous comment, new try

map { &amp;{ sub { map { $_[0] .  $_ } qw(a b c d e) } }($_) } (1..5)]]></description>
		<content:encoded><![CDATA[<p>Ouch, something ate half of the perl code in my previous comment, new try</p>
<p>map { &amp;{ sub { map { $_[0] .  $_ } qw(a b c d e) } }($_) } (1..5)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tajuma</title>
		<link>http://curiousprogrammer.wordpress.com/2010/10/04/nested-maps-in-perl/#comment-9227</link>
		<dc:creator><![CDATA[tajuma]]></dc:creator>
		<pubDate>Thu, 07 Jun 2012 09:59:49 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=1287#comment-9227</guid>
		<description><![CDATA[You can pass the outer $_ as a parameter to the inner map put inside a sub, and then refer the outer $_ in the inner as $_[0]:

map { qw(a b c d e) } }($_) } (1..5)]]></description>
		<content:encoded><![CDATA[<p>You can pass the outer $_ as a parameter to the inner map put inside a sub, and then refer the outer $_ in the inner as $_[0]:</p>
<p>map { qw(a b c d e) } }($_) } (1..5)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vol7ron</title>
		<link>http://curiousprogrammer.wordpress.com/2010/10/04/nested-maps-in-perl/#comment-9207</link>
		<dc:creator><![CDATA[vol7ron]]></dc:creator>
		<pubDate>Tue, 10 Apr 2012 19:06:53 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=1287#comment-9207</guid>
		<description><![CDATA[my $x = { map { $t-&gt;[0]-&gt;[$_] =&gt; $t-&gt;[1]-&gt;[$_] } 0..$#{$t-&gt;[0]} };
#hashref]]></description>
		<content:encoded><![CDATA[<p>my $x = { map { $t-&gt;[0]-&gt;[$_] =&gt; $t-&gt;[1]-&gt;[$_] } 0..$#{$t-&gt;[0]} };<br />
#hashref</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vol7ron</title>
		<link>http://curiousprogrammer.wordpress.com/2010/10/04/nested-maps-in-perl/#comment-9206</link>
		<dc:creator><![CDATA[vol7ron]]></dc:creator>
		<pubDate>Tue, 10 Apr 2012 19:04:47 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=1287#comment-9206</guid>
		<description><![CDATA[my $t = [[&#039;a&#039;..&#039;e&#039;],[1..5]];
my @x = map { $t-&gt;[0]-&gt;[$_] =&gt; $t-&gt;[1]-&gt;[$_] } 0..$#{$t-&gt;[0]};

There might be a better way than the above, but this is an alternative.]]></description>
		<content:encoded><![CDATA[<p>my $t = [['a'..'e'],[1..5]];<br />
my @x = map { $t-&gt;[0]-&gt;[$_] =&gt; $t-&gt;[1]-&gt;[$_] } 0..$#{$t-&gt;[0]};</p>
<p>There might be a better way than the above, but this is an alternative.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Using the diamond operator to find the Cartesian product of two lists. &#171; Discovering Perl</title>
		<link>http://curiousprogrammer.wordpress.com/2010/10/04/nested-maps-in-perl/#comment-8421</link>
		<dc:creator><![CDATA[Using the diamond operator to find the Cartesian product of two lists. &#171; Discovering Perl]]></dc:creator>
		<pubDate>Mon, 18 Oct 2010 21:00:27 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=1287#comment-8421</guid>
		<description><![CDATA[[...] should go where they are due: I discovered this construct while reading juster&#8217;s comment on [...]]]></description>
		<content:encoded><![CDATA[<p>[...] should go where they are due: I discovered this construct while reading juster&#8217;s comment on [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared</title>
		<link>http://curiousprogrammer.wordpress.com/2010/10/04/nested-maps-in-perl/#comment-8408</link>
		<dc:creator><![CDATA[Jared]]></dc:creator>
		<pubDate>Wed, 06 Oct 2010 21:33:55 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=1287#comment-8408</guid>
		<description><![CDATA[Hey juster, I knew about this trick in shell, but I didn&#039;t know it worked in perl&#039;s glob.  And it&#039;s portable too!

&lt;pre&gt;
$ c:/strawberry/perl/bin/perl test-juster.pl 
a1a2a3a4a5b1b2b3b4b5c1c2c3c4c5d1d2d3d4d5e1e2e3e4e5
$ 
&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>Hey juster, I knew about this trick in shell, but I didn&#8217;t know it worked in perl&#8217;s glob.  And it&#8217;s portable too!</p>
<pre>
$ c:/strawberry/perl/bin/perl test-juster.pl 
a1a2a3a4a5b1b2b3b4b5c1c2c3c4c5d1d2d3d4d5e1e2e3e4e5
$ 
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naveed Massjouni</title>
		<link>http://curiousprogrammer.wordpress.com/2010/10/04/nested-maps-in-perl/#comment-8406</link>
		<dc:creator><![CDATA[Naveed Massjouni]]></dc:creator>
		<pubDate>Tue, 05 Oct 2010 02:29:25 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=1287#comment-8406</guid>
		<description><![CDATA[@juster, that is very clever :)]]></description>
		<content:encoded><![CDATA[<p>@juster, that is very clever <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: juster</title>
		<link>http://curiousprogrammer.wordpress.com/2010/10/04/nested-maps-in-perl/#comment-8405</link>
		<dc:creator><![CDATA[juster]]></dc:creator>
		<pubDate>Mon, 04 Oct 2010 21:34:32 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=1287#comment-8405</guid>
		<description><![CDATA[I know this isn&#039;t exactly what you asked for but I found this interesting when I discovered this feature of glob:

my @x = glob( &#039;{a,b,c,d,e}{1,2,3,4,5}&#039; );

Hehe!]]></description>
		<content:encoded><![CDATA[<p>I know this isn&#8217;t exactly what you asked for but I found this interesting when I discovered this feature of glob:</p>
<p>my @x = glob( &#8216;{a,b,c,d,e}{1,2,3,4,5}&#8217; );</p>
<p>Hehe!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared</title>
		<link>http://curiousprogrammer.wordpress.com/2010/10/04/nested-maps-in-perl/#comment-8404</link>
		<dc:creator><![CDATA[Jared]]></dc:creator>
		<pubDate>Mon, 04 Oct 2010 14:17:55 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=1287#comment-8404</guid>
		<description><![CDATA[@Naveed - oh yes, the inner map is inside the outer map&#039;s lexical scope so it is possible to my declare the variable inside the map.  That makes it a lot neater already.

@zloyrusskiy - The $_{first}, $_{second}, etc... from List::Gen looks like a good generalisation of the technique I presented in my post.  It would be nice if it was available in core Perl.]]></description>
		<content:encoded><![CDATA[<p>@Naveed &#8211; oh yes, the inner map is inside the outer map&#8217;s lexical scope so it is possible to my declare the variable inside the map.  That makes it a lot neater already.</p>
<p>@zloyrusskiy &#8211; The $_{first}, $_{second}, etc&#8230; from List::Gen looks like a good generalisation of the technique I presented in my post.  It would be nice if it was available in core Perl.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zloyrusskiy</title>
		<link>http://curiousprogrammer.wordpress.com/2010/10/04/nested-maps-in-perl/#comment-8403</link>
		<dc:creator><![CDATA[zloyrusskiy]]></dc:creator>
		<pubDate>Mon, 04 Oct 2010 06:49:14 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=1287#comment-8403</guid>
		<description><![CDATA[You can look at List::Gen module, it has mapkey() and  cartesian() functions for that.

I think that Perl needs thats feature in future.]]></description>
		<content:encoded><![CDATA[<p>You can look at List::Gen module, it has mapkey() and  cartesian() functions for that.</p>
<p>I think that Perl needs thats feature in future.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
