<?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/"
	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>transfixed but not dead! &#187; parrot</title>
	<atom:link href="http://transfixedbutnotdead.com/tag/parrot/feed/" rel="self" type="application/rss+xml" />
	<link>http://transfixedbutnotdead.com</link>
	<description>my ramblings on life, work &#38; anything left in-between</description>
	<lastBuildDate>Fri, 03 Feb 2012 16:03:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='transfixedbutnotdead.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/0a317653027efb1ab2bf8adde3dcb067?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>transfixed but not dead! &#187; parrot</title>
		<link>http://transfixedbutnotdead.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://transfixedbutnotdead.com/osd.xml" title="transfixed but not dead!" />
	<atom:link rel='hub' href='http://transfixedbutnotdead.com/?pushpress=hub'/>
		<item>
		<title>Best things in life come in threes</title>
		<link>http://transfixedbutnotdead.com/2009/11/08/best-things-in-life-come-in-threes/</link>
		<comments>http://transfixedbutnotdead.com/2009/11/08/best-things-in-life-come-in-threes/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 20:48:18 +0000</pubDate>
		<dc:creator>draegtun</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Padre]]></category>
		<category><![CDATA[parrot]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[perl 5.10]]></category>
		<category><![CDATA[perl6]]></category>
		<category><![CDATA[rakudo]]></category>

		<guid isPermaLink="false">http://transfixedbutnotdead.com/?p=675</guid>
		<description><![CDATA[Following on from my last post it seems I have also been waiting for a kind of virtual conjunction between Perl 5.10.1, Parrot 1.0 &#38; Padre being a year old. Perl 5.10.1 Currently I run 5.8.8 in production on all servers that I manage. I do have Perl 5.10.0 running locally on my Mac but [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=transfixedbutnotdead.com&amp;blog=351142&amp;post=675&amp;subd=draegtun&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Following on from my <a href="http://transfixedbutnotdead.com/2009/10/31/patience-is-a-virtue-2/">last post</a>  it seems I have also been waiting for a kind of virtual conjunction between <a href="http://www.h-online.com/open/news/item/Perl-5-10-1-released-743063.html">Perl 5.10.1</a>, <a href="http://perlbuzz.com/2009/03/parrot-100-has-been-released.html">Parrot 1.0</a> &amp; <a href="http://onionstand.blogspot.com/2009/07/on-padres-birthday-gift-to-you-042.html">Padre being a year old</a>.</p>
<p><strong>Perl 5.10.1</strong></p>
<p>Currently I run 5.8.8 in production on all servers that I manage.  I do have Perl 5.10.0 running locally on my Mac but only for playing with.  </p>
<p>So first step is to load Perl 5.10.1 on my Mac (Tiger) alongside my other Perl&#8217;s and then start testing &amp; with the plan to roll it out to replace 5.8.8 in the not too distant future.  </p>
<p>These are my steps to load 5.10.1 locally so that it doesn&#8217;t conflict with any other Perl I have here:</p>
<ul>
<li>Download &amp; unpack Perl source code in my normal user login</li>
<li>./Configure -de -Dusethreads -Dprefix=~/local/Perl/perl-5.10.1/</li>
<li>gmake</li>
<li>gmake test</li>
<li>gmake install-all</li>
</ul>
<p>I now have Perl 5.10.1 running out of my $HOME directory.   </p>
<p>This all worked fine except the default location of .cpan directory was in $HOME (~/.cpan).   This could clash with other locally installed Perl if nothing is done so I amended everything in cpan shell to use ~/local/Perl/perl-5.10.1/.cpan instead (I did this using &#8220;o conf&#8221;).</p>
<p>I then quickly blasted my new local Perl 5.10.1 with a few CPAN modules which included:</p>
<ul>
<li>Moose</li>
<li>MooseX::Declare</li>
<li>autobox::Core</li>
<li>DateTime</li>
<li>XML::LibXML</li>
<li>Devel::REPL</li>
</ul>
<p>All modules I selected installed without a single hitch.   CPAN comes up trumps again!</p>
<p>Devel::REPL was of great interest to me because when I last tried to install this on 5.8.8 &amp; 5.10.0 I did have some problems.   </p>
<p>This time it installed &amp; worked wonderfully.  Only slight issue was there was no command line history? (ie. readline).   This was easily resolved by loading Bundle::CPAN (which also gave cpan shell history as well!)</p>
<p><strong>Padre</strong></p>
<p>Normally I don&#8217;t compile Perl with threads.   However I needed it for Padre, which is something I forgot about when I last tried installing Padre on my local 5.10.0 <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>I installed the following CPAN modules into my new Perl 5.10.1:</p>
<ul>
<li>Alien::wxWidgets</li>
<li>Wx</li>
<li>Padre</li>
</ul>
<p>All compiled &amp; installed seamlessly.   On starting Padre I got a nice pretty butterfly splash screen but then unfortunately it crashed <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>As with most things in life if you not starting off with a clean slate then it may cause problems.  I had some residue stuff from previous attempt that was part of the problem.</p>
<p>Two things were needed resolve this stumbling block:</p>
<ul>
<li>Remove WxWidget which was installed via <a href="http://www.macports.org/">MacPorts</a>  (<code>sudo port deactivate wxWidgets</code>) </li>
<li>Make sure new Perl 5.10.1 was first Perl in $PATH env variable.  Because even though I was running 5.10.1 CPAN shell the Wx module seemed fixated on picking up Alien::wxWidgets from the first Perl it could get its hands on <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' />  </li>
</ul>
<p>After this reinstalling the Wx &amp; Padre modules gave me a fully functional Padre.</p>
<p><strong>Parrot 1.0 / Rakudo / Perl6</strong></p>
<p>I was now using Padre 0.48 to edit &amp; run my Perl 5.10.1 code.   Want I wanted now was to add Perl6 into the mix.   </p>
<p>For this I just followed the <a href="http://rakudo.org/how-to-get-rakudo">instructions from Rakudo site</a> and installed it in my local user dir with no hitch at all.</p>
<p>Next in Perl 5.10.1 I installed the <a href="http://search.cpan.org/dist/Padre-Plugin-Perl6/">Padre::Plugin::Perl6</a> to make Padre Perl6 aware.  My first bit of Perl6 code ran from Padre &amp; command line perfectly (don&#8217;t forget to add your rakudo path to $PATH env):</p>
<p><pre class="brush: perl;">
use v6;

for 1..10 { .say }

class Dog {
    method bark { &quot;woof&quot; }
}

my Dog $rover .= new;
my $spot = Dog.new;

say $rover.bark;
say $spot.bark;
</pre></p>
<p>&nbsp;</p>
<p>So where do I stand with <a href="http://padre.perlide.org/">Padre</a>?  Well I do love my <a href="http://macromates.com/">Textmate</a> so it is going to be hard to tug me away from it.  </p>
<p>But I love the idea of an editor being hosted and extensible in Perl.  So come my next round of free time I may find the tugging from Padre just to strong to resist <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>/I3az/</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/draegtun.wordpress.com/675/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/draegtun.wordpress.com/675/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/draegtun.wordpress.com/675/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/draegtun.wordpress.com/675/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/draegtun.wordpress.com/675/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/draegtun.wordpress.com/675/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/draegtun.wordpress.com/675/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/draegtun.wordpress.com/675/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/draegtun.wordpress.com/675/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/draegtun.wordpress.com/675/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/draegtun.wordpress.com/675/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/draegtun.wordpress.com/675/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/draegtun.wordpress.com/675/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/draegtun.wordpress.com/675/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=transfixedbutnotdead.com&amp;blog=351142&amp;post=675&amp;subd=draegtun&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://transfixedbutnotdead.com/2009/11/08/best-things-in-life-come-in-threes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/29cb106071d163d703484e63839d89cb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">draegtun</media:title>
		</media:content>
	</item>
	</channel>
</rss>
