<?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>Graeme Lawton &#187; perl</title>
	<atom:link href="http://graeme.per.ly/category/perl/feed" rel="self" type="application/rss+xml" />
	<link>http://graeme.per.ly</link>
	<description>Because Perl definitely isn&#039;t dead.</description>
	<lastBuildDate>Wed, 16 Feb 2011 21:16:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Ooops, I appear to have not posted</title>
		<link>http://graeme.per.ly/ooops-i-appear-to-have-not-posted/301</link>
		<comments>http://graeme.per.ly/ooops-i-appear-to-have-not-posted/301#comments</comments>
		<pubDate>Mon, 08 Nov 2010 09:20:59 +0000</pubDate>
		<dc:creator>Graeme</dc:creator>
				<category><![CDATA[perl]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://graeme.per.ly/?p=301</guid>
		<description><![CDATA[According to the web-o-meter I&#8217;ve not posted since March, it now being November that&#8217;s really not good enough. Truth be told, I&#8217;ve not really been working with Perl much for work and in my spare time I&#8217;ve been&#8230;. working. As it happens though I did finally make it to a NWE.pm meet this month where [...]]]></description>
			<content:encoded><![CDATA[<p>According to the web-o-meter I&#8217;ve not posted since March, it now being November that&#8217;s really not good enough. Truth be told, I&#8217;ve not really been working with Perl much for work and in my spare time I&#8217;ve been&#8230;. working.</p>
<p>As it happens though I did finally make it to a <a title="North West England Perl Mongers" href="http://northwestengland.pm.org/">NWE.pm</a> meet this month where we planned some of the stuff for the <a href="http://northwestengland.pm.org/meetings/023.html">hack day</a>.</p>
<p>The plan, ambitious as it may be for a day, is to work up something similar to <a title="Heroku App Hosting" href="http://heroku.com/">Heroku</a> but for Perl apps obviously. I hope to be able to take over some of the good things I&#8217;ve learnt from the RoR community and use them on this project.</p>
<p>On another not, it appears that the <a href="http://per.ly/">per.ly</a> homepage has stopped aggregating the blog posts. I&#8217;ll get that sorted!</p>
<p>KTHXBYE <img src='http://graeme.per.ly/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://graeme.per.ly/ooops-i-appear-to-have-not-posted/301/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is this the death of Perl?</title>
		<link>http://graeme.per.ly/is-this-the-death-of-perl/269</link>
		<comments>http://graeme.per.ly/is-this-the-death-of-perl/269#comments</comments>
		<pubDate>Wed, 10 Feb 2010 16:24:44 +0000</pubDate>
		<dc:creator>Graeme</dc:creator>
				<category><![CDATA[perl]]></category>
		<category><![CDATA[sux]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://graeme.per.ly/?p=269</guid>
		<description><![CDATA[Sensationalist title I know but I work, at least for the minute, for a newspaper company that&#8217;s just been bought out. Now I&#8217;m fairly sure that our new corporate overlords will have no requirement for two web development departments. Meaning at least one of us is for the chop and they are the larger company [...]]]></description>
			<content:encoded><![CDATA[<p>Sensationalist title I know but I work, at least for the minute, for a newspaper company that&#8217;s just been bought out. Now I&#8217;m fairly sure that our new corporate overlords will have no requirement for two web development departments. Meaning at least one of us is for the chop and they are the larger company buying the smaller one, so centralising to their own resources seems likely to be the way they&#8217;ll go.</p>
<p>We have a strong development team here, with a great work ethic, who all love working with modern (<a title="EPO" href="http://www.enlightenedperl.org/">enlightened</a>) Perl. However only a <a title="UK Perl Jobs" href="http://jobs.perl.org/country/United%20Kingdom">cursory look</a> at the Jobs market around our location shows us that there aren&#8217;t very many openings for experienced Perl developers. Sure there are some around London, but outside of the big bad city there seems to be very few and for most of us relocating simply isn&#8217;t an option due to family commitments.</p>
<p>So being that we&#8217;re all competent developers switching to a different language isn&#8217;t a massive issue to us from a technical point of view but we&#8217;ve given some of the best years of our lives to Perl and the community surrounding it. Abandoning it, even only on a professional level, seems like it&#8217;s almost more gut-wrenching than the likely ensuing redundancies.</p>
<p>So is this the death of Perl for me/us? Perhaps and it&#8217;s gutting.</p>
]]></content:encoded>
			<wfw:commentRss>http://graeme.per.ly/is-this-the-death-of-perl/269/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>New per.ly blogger</title>
		<link>http://graeme.per.ly/new-per-ly-blogger/266</link>
		<comments>http://graeme.per.ly/new-per-ly-blogger/266#comments</comments>
		<pubDate>Thu, 29 Oct 2009 14:00:54 +0000</pubDate>
		<dc:creator>Graeme</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://graeme.per.ly/?p=266</guid>
		<description><![CDATA[Welcome to Mark, soon to be blogging on per.ly. Mark currently works primarily in PHP, but is slowly learning to love the Perl. Hopefully he&#8217;ll get to converting his site to Catalyst soon! On another note, thanks to everyone who showed up for the NWE.pm tech meet last night. I thougt it went well.]]></description>
			<content:encoded><![CDATA[<p>Welcome to Mark, soon to be blogging on <a title="Perl Blogging" href="http://tan.per.ly/" target="_self">per.ly</a>. Mark currently works primarily in PHP, but is slowly learning to love the Perl. Hopefully he&#8217;ll get to converting <a title="This Aint News" href="http://thisaintnews.com/" target="_blank">his site</a> to Catalyst soon!</p>
<p>On another note, thanks to everyone who showed up for the <a title="North West England Perl Mongers" href="http://northwestengland.pm.org/">NWE.pm</a> tech meet last night. I thougt it went well.</p>
]]></content:encoded>
			<wfw:commentRss>http://graeme.per.ly/new-per-ly-blogger/266/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Northwest England Perl Mongers &#8211; Meet #6</title>
		<link>http://graeme.per.ly/northwest-england-perl-mongers-meet-6/263</link>
		<comments>http://graeme.per.ly/northwest-england-perl-mongers-meet-6/263#comments</comments>
		<pubDate>Thu, 02 Jul 2009 13:28:56 +0000</pubDate>
		<dc:creator>Graeme</dc:creator>
				<category><![CDATA[perl]]></category>
		<category><![CDATA[perl promises pm "men media"]]></category>

		<guid isPermaLink="false">http://graeme.per.ly/?p=263</guid>
		<description><![CDATA[Just a quick one to welcome mdk to per.ly and shout about the NWE.pm meet that we hosted at work. Anyway it was great and Mark has posted a full write-up. I promise to post something more fulfilling soon, honest.]]></description>
			<content:encoded><![CDATA[<p>Just a quick one to welcome <a title="MDK" href="http://mdk.per.ly/">mdk</a> to per.ly and shout about the NWE.pm meet that we hosted at work. Anyway it was great and Mark has posted a <a title="NWE.pm Tech Meet #6" href="http://bit.ly/jndRy">full write-up</a>.</p>
<p>I promise to post something more fulfilling soon, honest.</p>
]]></content:encoded>
			<wfw:commentRss>http://graeme.per.ly/northwest-england-perl-mongers-meet-6/263/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Next northwestengland.pm meet</title>
		<link>http://graeme.per.ly/next-northwestenglandpm-meet/260</link>
		<comments>http://graeme.per.ly/next-northwestenglandpm-meet/260#comments</comments>
		<pubDate>Thu, 04 Jun 2009 09:29:15 +0000</pubDate>
		<dc:creator>Graeme</dc:creator>
				<category><![CDATA[perl]]></category>
		<category><![CDATA[manchester]]></category>
		<category><![CDATA[mongers]]></category>
		<category><![CDATA[northwest]]></category>
		<category><![CDATA[northwestengland.pm]]></category>
		<category><![CDATA[pm]]></category>

		<guid isPermaLink="false">http://graeme.per.ly/?p=260</guid>
		<description><![CDATA[The next Northwest England Perl Mongers meet is going to be a technical meet on 1st July. Everyone attending is invited to deliver a lightning talk relating to anything you think we&#8217;ll be interested in. Lightning talks should be about 5 minutes long. We will be meeting at MEN Media&#8217;s headquarters on Deansgate in Manchester [...]]]></description>
			<content:encoded><![CDATA[<p>The next <a title="NWE Perl Mongers" href="http://northwestengland.pm.org/">Northwest England Perl Mongers</a> meet is going to be a <a title="NWE.pm Technical Meet" href="http://northwestengland.pm.org/meetings/006.html">technical meet</a> on 1st July. Everyone attending is invited to deliver a lightning talk relating to anything you think we&#8217;ll be interested in. Lightning talks should be about 5 minutes long.</p>
<p>We will be meeting at MEN Media&#8217;s headquarters on Deansgate in Manchester but the powers that be would like an attendees list before hand so please drop a line on the mailing list or let us know in #northwestengland.pm on irc.perl.org.</p>
<p>Oh yeah, and we need to think of a talk subject for <a title="Matt S Trout" href="http://www.shadowcat.co.uk/blog/matt-s-trout/">Matt Trout</a> to talk about, as he volunteered to talk about a subject of our choosing.</p>
]]></content:encoded>
			<wfw:commentRss>http://graeme.per.ly/next-northwestenglandpm-meet/260/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Perl to the rescue&#8230;</title>
		<link>http://graeme.per.ly/perl-to-the-rescue/256</link>
		<comments>http://graeme.per.ly/perl-to-the-rescue/256#comments</comments>
		<pubDate>Sun, 24 May 2009 22:50:15 +0000</pubDate>
		<dc:creator>Graeme</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://graeme.per.ly/?p=256</guid>
		<description><![CDATA[So it appears there are some drawbacks in WordPress Mu. Mainly that there is a complete lack of a decent content aggregation plugin for it. Well that&#8217;s no problem, I&#8217;ll just write one&#8230;. wait just one minute. Perhaps the reason that their isn&#8217;t one already is because Mu is basically a giant hack! There is [...]]]></description>
			<content:encoded><![CDATA[<p>So it appears there are some drawbacks in <a title="Wordpress Mu" href="http://mu.wordpress.org/">WordPress Mu</a>. Mainly that there is a complete lack of a decent content aggregation plugin for it. Well that&#8217;s no problem, I&#8217;ll just write one&#8230;. wait just one minute. Perhaps the reason that their isn&#8217;t one already is because Mu is basically a giant hack!</p>
<p>There is an ugly bit of <a title="PHP" href="http://php.net">PHP</a> that basically sets the current blog and then everything works, however changing the current blog breaks pretty much everything. Also Mu creates a set of tables for every blog, so all the posts are in different tables. Thus making writing a nice clean Mu plugin to aggregate the posts an impossibility.</p>
<p>So Perl it is then. A quick script to union the tables, TT the data and then print the output. Add a bit of caching and hey presto, done in less than an hour.</p>
<p>Still could use a bit of tidying up in the templates but other than that it&#8217;s all good. Anyway it&#8217;s running the <a title="per.ly" href="http://per.ly/">per.ly homepage</a> now. Also if anyone wants a per.ly blog, to post about anything related to <a title="Perl" href="http://www.perl.com/">Perl</a> leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://graeme.per.ly/perl-to-the-rescue/256/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Smart Match &#8211; Speed comparison</title>
		<link>http://graeme.per.ly/smart-match-speed-comparison/249</link>
		<comments>http://graeme.per.ly/smart-match-speed-comparison/249#comments</comments>
		<pubDate>Mon, 18 May 2009 15:54:24 +0000</pubDate>
		<dc:creator>Graeme</dc:creator>
				<category><![CDATA[cpan]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[5.10]]></category>
		<category><![CDATA[benchmark]]></category>
		<category><![CDATA[smart match]]></category>

		<guid isPermaLink="false">http://graeme.per.ly/?p=249</guid>
		<description><![CDATA[Recently I was reading an article from the good folks at Perl Training Australia about the 5.10 Smart Match functionality. I was particularly interested in the fact that they referred to the speed of the Smart Match being &#8220;extremely fast&#8221;, so I decided to hack together a quick script to see what potential speed gains [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I was reading an <a title="Smart Match - Perl Training Australia" href="http://perltraining.com.au/tips/2008-04-18.html">article</a> from the good folks at Perl Training Australia about the 5.10 Smart Match functionality. I was particularly interested in the fact that they referred to the speed of the Smart Match being<em> &#8220;extremely fast&#8221;</em>, so I decided to hack together a quick script to see what potential speed gains we were looking at.</p>
<p>I focused my investigation on comparing two arrays and using <a title="CPAN Benchmark" href="http://search.cpan.org/~tty/kurila-1.19_0/lib/Benchmark.pm">Benchmark</a> to see how much quicker using the Smart Match would be.</p>
<p>I created two quick routines to compare the arrays:</p>
<pre style="padding-left: 30px">sub smart_compare {
    return 1 if(\@a ~~ \@b);
}

sub foreach_compare {
        return 0 if(@a != @b); #Scalar compare to check lengths.
        my $i = 0;

        foreach (@a) {
                return 0 if($a[$i] != $b[$i]);
                ++$i;
        }

        return 1;
}</pre>
<p>The smart match comparison being much more concise and the foreach_compare not having an particular optimisations, but both being fairly trivial.</p>
<p>So I chose four simple test cases for comparing the arrays:-</p>
<ul>
<li>Matching arrays (1,2,3,4,5,6) == (1,2,3,4,5,6)</li>
<li>Last value different (1,2,3,4,5,6) == (1,2,3,4,5,5)</li>
<li>First value different (1,2,3,4,5,6) == (5,2,3,4,5,6)</li>
<li>Number of items in arrays different (1,2,3,4,5,6) = (1,2,3,4,5,6,7)</li>
</ul>
<p>I was expecting the Smart Match to be quicker, although not by too much in all of the cases. It turns out that the Smart Match was slower in all but one case (Over a million iterations).</p>
<ul>
<li>Matching arrays (Smart Compare: <em>21 Seconds </em>Foreach Loop: <em>7 Seconds</em>)</li>
<li>Last value different  (Smart Compare: <em>20 Seconds </em>Foreach Loop: <em>6 Seconds</em>)</li>
<li>First value different  (Smart Compare: <em>5 Seconds </em>Foreach Loop: <em>3 Seconds</em>)</li>
<li>Number of items in arrays different  (Smart Compare: <em>1 Second </em>Foreach Loop: <em>1 Second</em>)</li>
</ul>
<p>When the number of items in the array is different the Smart Match and Foreach loop perform pretty much evenly across repeated tests.</p>
<p>All the tests were ran on Perl 5.10.0, installed from Source on a P4 with 2 Gig of ram. Whilst these findings show the smart match to be slower when comparing arrays, this is of course only a simple test case and other types of comparisons offered by the Smart Match should obviously be investigated too.</p>
<p>The <a title="Test Script" href="http://graeme.per.ly/files/2009/05/test.pl">test script is available for download</a> if anyone wants to give it a go on their system (or find any mistakes).</p>
]]></content:encoded>
			<wfw:commentRss>http://graeme.per.ly/smart-match-speed-comparison/249/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Northwest PM Meet &#8211; Manchester</title>
		<link>http://graeme.per.ly/northwest-pm-meet-manchester/244</link>
		<comments>http://graeme.per.ly/northwest-pm-meet-manchester/244#comments</comments>
		<pubDate>Mon, 11 May 2009 10:13:30 +0000</pubDate>
		<dc:creator>Graeme</dc:creator>
				<category><![CDATA[perl]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[mongers]]></category>
		<category><![CDATA[northwestpm]]></category>
		<category><![CDATA[pm]]></category>

		<guid isPermaLink="false">http://graeme.per.ly/?p=244</guid>
		<description><![CDATA[I completely forgot to blog about the Northwest PM meet last week. Perhaps the Perl scene in Manchester isn&#8217;t as lacking as we initially thought. Although there were only a few of us actually from Manchester. Three interesting talks were given: Object oriented database design in PostgreSQL (Matt S Trout) Converting 16k user mailboxes from [...]]]></description>
			<content:encoded><![CDATA[<p>I completely forgot to blog about the <a title="Northwest Perl Mongers" href="http://northwestengland.pm.org/media/002.html">Northwest PM meet</a> last week. Perhaps the Perl scene in Manchester isn&#8217;t as lacking as we initially thought. Although there were only a few of us actually from Manchester.</p>
<p>Three interesting talks were given:</p>
<ul>
<li> <a title="Object Orientated database design in PostgreSQL" href="http://www.shadowcat.co.uk/archive/conference-video/nwepm/postgres/">Object oriented database design in PostgreSQL</a> (<a title="Matt S Trout's blog" href="http://www.shadowcat.co.uk/blog/matt-s-trout/">Matt S Trout</a>)</li>
<li> Converting 16k user mailboxes from MBOX to MDIR++ (Ian Norton)</li>
<li> Functional Pe(a)rls v3 (<a title="Osfameron's blog" href="http://greenokapi.net/blog/">Osfameron</a>)</li>
</ul>
<p>All the talks were fairly good and I&#8217;d recommend any other Perl devs (or even potential ones) show their faces. We&#8217;re friendlier than we look&#8230; honest <img src='http://graeme.per.ly/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>The <a title="Northwest Perl Mongers Social Meet" href="http://northwestengland.pm.org/meetings/005.html">next meet is a social</a>, again in Manchester.</p>
]]></content:encoded>
			<wfw:commentRss>http://graeme.per.ly/northwest-pm-meet-manchester/244/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Perl: How did you get hooked?</title>
		<link>http://graeme.per.ly/perl-how-did-you-get-hooked/237</link>
		<comments>http://graeme.per.ly/perl-how-did-you-get-hooked/237#comments</comments>
		<pubDate>Thu, 07 May 2009 08:09:47 +0000</pubDate>
		<dc:creator>Graeme</dc:creator>
				<category><![CDATA[Catalyst]]></category>
		<category><![CDATA[cpan]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[Beginnings]]></category>

		<guid isPermaLink="false">http://graeme.per.ly/?p=237</guid>
		<description><![CDATA[One of the fine gentlemen I work with recently blogged about how he started out with Perl and it got me thinking about why Perl currently seems to be failing to drive the interest it so rightfully deserves. Perhaps by thinking about how developers select a language we are more likely to understand why Perl [...]]]></description>
			<content:encoded><![CDATA[<p>One of the fine gentlemen I work with recently blogged about how he <a title="Iain Hubbard" href="http://iain.per.ly/hooked-on-perl/">started out with Perl</a> and it got me thinking about why Perl currently seems to be failing to drive the interest it so rightfully deserves.</p>
<p>Perhaps by thinking about how developers select a language we are more likely to understand why Perl doesn&#8217;t get the numbers. I personally can&#8217;t even remember how I started out on Perl, it was that long ago. I suspect it was because PHP wasn&#8217;t even around, and it was the most obvious choice for a dynamic site, or more likely page at the time.</p>
<p>So what are we doing to attract new developers to the wondrous Perl? CPAN offers a great resource for developers who already work with Perl, but what is there for developers new to Perl? Or more importantly what is there to actually entice them to Perl. Every virtual corner you turn someone is mentioning PHP or Ruby on Rails, but Perl seems to be less &#8220;down with the kids&#8221;.</p>
<p>Let me be the first to admit, I certainly don&#8217;t have the answers, but perhaps by looking at how we got the Perl bug, we can come up with some ideas how to hook in more users.</p>
<p>Recently on the Catalyst mailing list was a thread about the <a title="Catalyst 5.8" href="http://dev.catalystframework.org/wiki/releaseannouncements/58pressrelease">press release</a> detailing the latest 5.8 version and discussions turned to the &#8220;outlandish claims&#8221; that PHP and Ruby evangelists make. But I find my self wondering do we do enough to actually proclaim the things that Perl does well?</p>
<p>Now I realise I&#8217;m ranting, but it&#8217;s entirely possible that <a title="MEN redundancies" href="http://www.how-do.co.uk/north-west-media-news/north-west-publishing/union-slams-huge-cuts-by-men-media,-as-dodson-%27deeply-regrets%27-actions-200903114886/">I&#8217;ll need to be</a> looking for a new job in the near future and I&#8217;m not entirely convinced I&#8217;ll be able to get one working with Perl. I&#8217;d love to be able to blame this on someone, but to be honest it&#8217;s entirely our own fault. As Perl developers we simply aren&#8217;t doing enough!</p>
]]></content:encoded>
			<wfw:commentRss>http://graeme.per.ly/perl-how-did-you-get-hooked/237/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Test::Aggregate</title>
		<link>http://graeme.per.ly/test-aggregate/233</link>
		<comments>http://graeme.per.ly/test-aggregate/233#comments</comments>
		<pubDate>Wed, 29 Apr 2009 16:53:39 +0000</pubDate>
		<dc:creator>Graeme</dc:creator>
				<category><![CDATA[cpan]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[Catalyst]]></category>
		<category><![CDATA[test::aggregate]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://graeme.per.ly/?p=233</guid>
		<description><![CDATA[Test::Aggregate is a simple, yet fantastic module that allows, you guessed it, tests to be aggregated. This turns out to be a true god send when testing large Catalyst apps. Previously in order to run all the tests against an app I would generally have ran a stand alone server in one terminal, and then [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://search.cpan.org/~ovid/Test-Aggregate-0.35/lib/Test/Aggregate.pm">Test::Aggregate</a> is a simple, yet fantastic module that allows, you guessed it, tests to be aggregated. This turns out to be a true god send when testing large Catalyst apps.</p>
<p>Previously in order to run all the tests against an app I would generally have ran a stand alone server in one terminal, and then ran the tests against that stand alone instance in another, something along the lines of:</p>
<pre>term1#&gt; perl script/myapp_server.pl

term2#&gt; CATALYST_SERVER="http://localhost:3000" prove -Ilib t</pre>
<p>Of course simply running prove t would run all the tests, but with the time taken to initialise the Catalyst instance being added to the start of each test, this could be hugely time consuming.</p>
<p>Using Test::Aggregate a very simple script can be knocked up that will run all your tests, and only actually create a single Catalyst instance.</p>
<pre>    use Test::Aggregate;

    my $tests = Test::Aggregate-&gt;new( {
        dirs =&gt; 'myapp/t',
    } );
    $tests-&gt;run;</pre>
<p>This will load all your tests, each into their own unique package space. Meaning that only a single Perl instance is required to run all the tests and that all the required modules will only be loaded once. Both the overhead in running the entire test suite and the execution time will be drastically reduced.</p>
<p>Problems can occur if you are using global variables, in that they may be overwitten by the tests as they run, but of course you aren&#8217;t using them anyway&#8230; are you?</p>
]]></content:encoded>
			<wfw:commentRss>http://graeme.per.ly/test-aggregate/233/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

