<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
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:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>beer planet &#187; transition</title> <atom:link href="http://beerpla.net/tag/transition/feed/" rel="self" type="application/rss+xml" /><link>http://beerpla.net</link> <description>where things have nothing to do with beer - tutorials, tips, how-tos, thoughts, hacks, and other techy nonsense</description> <lastBuildDate>Fri, 06 Jan 2012 08:50:59 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel='hub' href='http://beerpla.net/?pushpress=hub'/> <item><title>Moving From Perl 5 to Perl 6 &#8211; What&#039;s New, Tutorial Style</title><link>http://beerpla.net/2008/08/22/moving-from-perl-5-to-perl-6-whats-new-tutorial-style/</link> <comments>http://beerpla.net/2008/08/22/moving-from-perl-5-to-perl-6-whats-new-tutorial-style/#comments</comments> <pubDate>Fri, 22 Aug 2008 22:21:17 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Programming]]></category> <category><![CDATA[feature]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[new]]></category> <category><![CDATA[perl 5]]></category> <category><![CDATA[perl 6]]></category> <category><![CDATA[transition]]></category> <category><![CDATA[tutorial]]></category> <guid
isPermaLink="false">http://beerpla.net/2008/08/22/moving-from-perl-5-to-perl-6-whats-new-tutorial-style/</guid> <description><![CDATA[<p><a
href="http://beerpla.net/wp-content/uploads/MovingFromPerl5toPerl6WhatsNewTutorialSt_D1CA/image.png" class="lightview" rel="gallery['411']"><img
style="border-right: 0px; border-top: 0px; margin: 0px 10px 10px 0px; border-left: 0px; border-bottom: 0px" height="95" alt="image" src="http://beerpla.net/wp-content/uploads/MovingFromPerl5toPerl6WhatsNewTutorialSt_D1CA/image_thumb.png" width="115" align="left" border="0"/></a>Newsflash: Perl 6 is not dead (in case you thought it was)!</p><p>I stumbled upon <a
href="http://perlgeek.de/blog-en/perl-5-to-6/">this most excellent series of posts</a> by Moritz Lenz of perlgeek.de that describe the differences between Perl 5 and the upcoming Perl 6 (thanks to <a
href="http://perlbuzz.com/2008/08/how-cool-perl-6-really-is.html">Andy Lester</a> for the link). The posts are done in the form of tutorials, which helps comprehension. Simply awesome, Moritz.</p><p>It seems like Perl 6 is going to be a lot more object oriented, but such orientation is optional and not forced upon programmers, like in, say, Java. It warms my heart that I will be able to do this (you did see the <a
href="http://search.cpan.org/~rgarcia/perl-5.10.0/pod/perl5100delta.pod#say()">new &#034;say&#034; function</a> in Perl 5.10, right?):</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
</pre></td><td
class="code"><pre>my Num</pre></td></tr></table></div><p>...<div
class=clear></div> <a
href="http://beerpla.net/2008/08/22/moving-from-perl-5-to-perl-6-whats-new-tutorial-style/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p><a
href="http://beerpla.net/wp-content/uploads/MovingFromPerl5toPerl6WhatsNewTutorialSt_D1CA/image.png" class="lightview" rel="gallery['411']"><img
style="border-right: 0px; border-top: 0px; margin: 0px 10px 10px 0px; border-left: 0px; border-bottom: 0px" height="95" alt="image" src="http://beerpla.net/wp-content/uploads/MovingFromPerl5toPerl6WhatsNewTutorialSt_D1CA/image_thumb.png" width="115" align="left" border="0"></a>Newsflash: Perl 6 is not dead (in case you thought it was)!<p>I stumbled upon <a
href="http://perlgeek.de/blog-en/perl-5-to-6/">this most excellent series of posts</a> by Moritz Lenz of perlgeek.de that describe the differences between Perl 5 and the upcoming Perl 6 (thanks to <a
href="http://perlbuzz.com/2008/08/how-cool-perl-6-really-is.html">Andy Lester</a> for the link). The posts are done in the form of tutorials, which helps comprehension. Simply awesome, Moritz.<p>It seems like Perl 6 is going to be a lot more object oriented, but such orientation is optional and not forced upon programmers, like in, say, Java. It warms my heart that I will be able to do this (you did see the <a
href="http://search.cpan.org/~rgarcia/perl-5.10.0/pod/perl5100delta.pod#say()">new &#034;say&#034; function</a> in Perl 5.10, right?):</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
</pre></td><td
class="code"><pre>my Num $x = 3.4;
say $x.WHAT; # Num
say &quot;foo&quot;.WHAT; # Str</pre></td></tr></table></div><p>My favorite Perl 6 change so far is this:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td
class="code"><pre># named arguments
&nbsp;
sub doit(:$when, :$what) {
  say &quot;doing $what at $when&quot;;
}
&nbsp;
doit(what =&gt; 'stuff', when =&gt; 'once');  # 'doing stuff at once'
&nbsp;
doit(:when, :what('more stuff')); # 'doing more stuff at noon'</pre></td></tr></table></div><p>I&#039;ve first seen this technique in Ruby (apparently Python has it too), and have been using an anonymous hash in order to emulate named arguments in Perl 5. Perl 6 does it in a much cleaner way.</p><p>I wonder if there are any Perl 6 changes specifically affecting file/disk access, MySQL interaction, and execution speed.</p><p>What is your favorite new feature? Comments welcome.</p><p><b>Edit</b>: Whoa, string concatenation is now ~, the dot . is used for method calls. That&#039;s kind of upsetting, I&#039;m so used to &#039;.&#039;.</p><p><b>Edit #2</b>: Holy crap, regex changed so much, it just warped my head onto itself and now I have a black hole in place of my face, thanks a lot. Regexes are also now called &#034;Rules&#034;. <a
href="http://perlgeek.de/blog-en/perl-5-to-6/07-rules.writeback">More here</a></p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=Moving+From+Perl+5+to+Perl+6+-+What%27s+New%2C+Tutorial+Style&amp;link=http://beerpla.net/2008/08/22/moving-from-perl-5-to-perl-6-whats-new-tutorial-style/&amp;notes=Newsflash%3A%20Perl%206%20is%20not%20dead%20%28in%20case%20you%20thought%20it%20was%29%21%20I%20stumbled%20upon%20this%20most%20excellent%20series%20of%20posts%20by%20Moritz%20Lenz%20of%20perlgeek.de%20that%20describe%20the%20differences%20between%20Perl%205%20and%20the%20upcoming%20Perl%206%20%28thanks%20to%20Andy%20Lester%20for%20the%20link%29.%20The%20posts%20are%20done%20in%20the%20form%20of%20tutorials%2C%20which%20&amp;short_link=http://bit.ly/bDJVVH&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=Moving+From+Perl+5+to+Perl+6+-+What%27s+New%2C+Tutorial+Style&amp;link=http://beerpla.net/2008/08/22/moving-from-perl-5-to-perl-6-whats-new-tutorial-style/&amp;notes=Newsflash%3A%20Perl%206%20is%20not%20dead%20%28in%20case%20you%20thought%20it%20was%29%21%20I%20stumbled%20upon%20this%20most%20excellent%20series%20of%20posts%20by%20Moritz%20Lenz%20of%20perlgeek.de%20that%20describe%20the%20differences%20between%20Perl%205%20and%20the%20upcoming%20Perl%206%20%28thanks%20to%20Andy%20Lester%20for%20the%20link%29.%20The%20posts%20are%20done%20in%20the%20form%20of%20tutorials%2C%20which%20&amp;short_link=http://bit.ly/bDJVVH&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=Moving+From+Perl+5+to+Perl+6+-+What%27s+New%2C+Tutorial+Style&amp;link=http://beerpla.net/2008/08/22/moving-from-perl-5-to-perl-6-whats-new-tutorial-style/&amp;notes=Newsflash%3A%20Perl%206%20is%20not%20dead%20%28in%20case%20you%20thought%20it%20was%29%21%20I%20stumbled%20upon%20this%20most%20excellent%20series%20of%20posts%20by%20Moritz%20Lenz%20of%20perlgeek.de%20that%20describe%20the%20differences%20between%20Perl%205%20and%20the%20upcoming%20Perl%206%20%28thanks%20to%20Andy%20Lester%20for%20the%20link%29.%20The%20posts%20are%20done%20in%20the%20form%20of%20tutorials%2C%20which%20&amp;short_link=http://bit.ly/bDJVVH&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=Moving+From+Perl+5+to+Perl+6+-+What%27s+New%2C+Tutorial+Style&amp;link=http://beerpla.net/2008/08/22/moving-from-perl-5-to-perl-6-whats-new-tutorial-style/&amp;notes=Newsflash%3A%20Perl%206%20is%20not%20dead%20%28in%20case%20you%20thought%20it%20was%29%21%20I%20stumbled%20upon%20this%20most%20excellent%20series%20of%20posts%20by%20Moritz%20Lenz%20of%20perlgeek.de%20that%20describe%20the%20differences%20between%20Perl%205%20and%20the%20upcoming%20Perl%206%20%28thanks%20to%20Andy%20Lester%20for%20the%20link%29.%20The%20posts%20are%20done%20in%20the%20form%20of%20tutorials%2C%20which%20&amp;short_link=http://bit.ly/bDJVVH&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=Moving+From+Perl+5+to+Perl+6+-+What%27s+New%2C+Tutorial+Style&amp;link=http://beerpla.net/2008/08/22/moving-from-perl-5-to-perl-6-whats-new-tutorial-style/&amp;notes=Newsflash%3A%20Perl%206%20is%20not%20dead%20%28in%20case%20you%20thought%20it%20was%29%21%20I%20stumbled%20upon%20this%20most%20excellent%20series%20of%20posts%20by%20Moritz%20Lenz%20of%20perlgeek.de%20that%20describe%20the%20differences%20between%20Perl%205%20and%20the%20upcoming%20Perl%206%20%28thanks%20to%20Andy%20Lester%20for%20the%20link%29.%20The%20posts%20are%20done%20in%20the%20form%20of%20tutorials%2C%20which%20&amp;short_link=http://bit.ly/bDJVVH&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=Moving+From+Perl+5+to+Perl+6+-+What%27s+New%2C+Tutorial+Style&amp;link=http://beerpla.net/2008/08/22/moving-from-perl-5-to-perl-6-whats-new-tutorial-style/&amp;notes=Newsflash%3A%20Perl%206%20is%20not%20dead%20%28in%20case%20you%20thought%20it%20was%29%21%20I%20stumbled%20upon%20this%20most%20excellent%20series%20of%20posts%20by%20Moritz%20Lenz%20of%20perlgeek.de%20that%20describe%20the%20differences%20between%20Perl%205%20and%20the%20upcoming%20Perl%206%20%28thanks%20to%20Andy%20Lester%20for%20the%20link%29.%20The%20posts%20are%20done%20in%20the%20form%20of%20tutorials%2C%20which%20&amp;short_link=http://bit.ly/bDJVVH&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=Moving+From+Perl+5+to+Perl+6+-+What%27s+New%2C+Tutorial+Style&amp;link=http://beerpla.net/2008/08/22/moving-from-perl-5-to-perl-6-whats-new-tutorial-style/&amp;notes=Newsflash%3A%20Perl%206%20is%20not%20dead%20%28in%20case%20you%20thought%20it%20was%29%21%20I%20stumbled%20upon%20this%20most%20excellent%20series%20of%20posts%20by%20Moritz%20Lenz%20of%20perlgeek.de%20that%20describe%20the%20differences%20between%20Perl%205%20and%20the%20upcoming%20Perl%206%20%28thanks%20to%20Andy%20Lester%20for%20the%20link%29.%20The%20posts%20are%20done%20in%20the%20form%20of%20tutorials%2C%20which%20&amp;short_link=http://bit.ly/bDJVVH&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=Moving%20From%20Perl%205%20to%20Perl%206%20-%20What%27s%20New%2C%20Tutorial%20Style&amp;link=http://beerpla.net/2008/08/22/moving-from-perl-5-to-perl-6-whats-new-tutorial-style/&amp;notes=Newsflash%3A%20Perl%206%20is%20not%20dead%20%28in%20case%20you%20thought%20it%20was%29%21%20I%20stumbled%20upon%20this%20most%20excellent%20series%20of%20posts%20by%20Moritz%20Lenz%20of%20perlgeek.de%20that%20describe%20the%20differences%20between%20Perl%205%20and%20the%20upcoming%20Perl%206%20%28thanks%20to%20Andy%20Lester%20for%20the%20link%29.%20The%20posts%20are%20done%20in%20the%20form%20of%20tutorials%2C%20which%20&amp;short_link=http://bit.ly/bDJVVH&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2007/08/04/watch-a-useful-linux-command-you-may-have-never-heard-of/" rel="bookmark" title="August 4, 2007">Watch &#8211; A Useful Linux Command You May Have Never Heard Of</a></li><li><a
href="http://beerpla.net/2008/04/29/how-do-i-get-both-the-return-value-and-text-in-perl-backticks-vs-system-perl-510/" rel="bookmark" title="April 29, 2008">How Do I Get Both The Return Value And Text In Perl? Backticks vs. System() (Perl 5.10)</a></li><li><a
href="http://beerpla.net/2008/04/29/interesting-uses-for-google-streetview-video-by-google/" rel="bookmark" title="April 29, 2008">Interesting Uses For Google Streetview (Video By Google)</a></li><li><a
href="http://beerpla.net/2008/04/15/mysql-conference-liveblogging-explain-demystified-tuesday-200p/" rel="bookmark" title="April 15, 2008">MySQL Conference Liveblogging: EXPLAIN Demystified (Tuesday 2:00PM)</a></li><li><a
href="http://beerpla.net/2008/08/15/debugging-weird-sshd-connection-problems-what-happens-when-you-stop-sshd/" rel="bookmark" title="August 15, 2008">Debugging Weird sshd Connection Problems + What Happens When You Stop sshd</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2008%2F08%2F22%2Fmoving-from-perl-5-to-perl-6-whats-new-tutorial-style%2F&amp;title=Moving%20From%20Perl%205%20to%20Perl%206%20%26%238211%3B%20What%26%23039%3Bs%20New%2C%20Tutorial%20Style" id="wpa2a_2"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2008/08/22/moving-from-perl-5-to-perl-6-whats-new-tutorial-style/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> </channel> </rss>
