jrockway's Journal http://use.perl.org/~jrockway/journal/ jrockway's use Perl Journal en-us use Perl; is Copyright 1998-2006, Chris Nandor. Stories, comments, journals, and other submissions posted on use Perl; are Copyright their respective owners. 2012-01-25T02:26:12+00:00 pudge pudge@perl.org Technology hourly 1 1970-01-01T00:00+00:00 jrockway's Journal http://use.perl.org/images/topics/useperl.gif http://use.perl.org/~jrockway/journal/ Catalyst book is out! http://use.perl.org/~jrockway/journal/35112?from=rss <p> My <a href="http://www.packtpub.com/catalyst-perl-web-application/book">Catalyst book</a> is out and is beginning to appear in the hands of fellow Catalyst users! You can buy it from Amazon and local book stores, but it looks like the publisher (<a href="http://www.packtpub.com/">Packt</a>) has the best price right now. </p><p> Basically, this book covers getting started with Catalyst. The goal is to take you from "what's MVC?" to being able to write complete web applications with Catalyst. We'll build a few complete applications including an address book, a mini-blog, and ChatStat (which is basically <a href="http://ircxory.jrock.us/">Ircxory</a> but with a Template Toolkit interface instead of one built with Template::Declare).</p><p> Along the way you'll learn all about Catalyst, DBIx::Class, and the Template Toolkit. I cover REST interfaces, AJAX (with Jemplate), RSS, testing, deployment, and more. The book is very hands-on oriented; I usually explain what sort of code I want to write, write the code, and then explain what the code does. If necessary, we look at theoretical examples of when related features would be useful, and then move on to the next piece of code. </p><p> The full PR blurb is on the <a href="http://www.packtpub.com/catalyst-perl-web-application/book">book's website</a>, so please take a look. </p> jrockway 2007-12-16T08:37:34+00:00 books perl buzz http://use.perl.org/~jrockway/journal/34113?from=rss Looks like Andy Lester has started his own version of use.perl at <a href="http://perlbuzz.com/">http://perlbuzz.com/</a>. <br> TMTOWTDI! jrockway 2007-08-15T06:58:46+00:00 journal emacs template for perl modules http://use.perl.org/~jrockway/journal/33244?from=rss <p>Here's the template.el template I use for<nobr> <wbr></nobr>.pm files:</p><p><code><br># Copyright (c) (&gt;&gt;&gt;YEAR&lt;&lt;&lt;) Jonathan Rockway &lt;jrockway@cpan.org&gt;</code></p><p><code>package (&gt;&gt;&gt;PACKAGE_NAME&lt;&lt;&lt;);<br>use strict;<br>use warnings;<br>(&gt;&gt;&gt;POINT&lt;&lt;&lt;)<br>1;<br>&gt;&gt;&gt;TEMPLATE-DEFINITION-SECTION&lt;&lt;&lt;<br>("PACKAGE_NAME" (insert-string<br>(let ((filename (buffer-file-name)))<br> &nbsp; &nbsp; &nbsp; (if (string-match "lib/\\(.+\\)[.]pm$" filename)<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (let ((mod (match-string 1 filename)))<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (while (string-match "/" mod)<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (setq mod (replace-match "::" nil nil mod)))<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mod)<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (if (string-match "\\([^/]+\\)[.]pm$" filename)<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (match-string 1 filename)<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "UNKNOWN")))<br>))<br></code><br>The nice part is that it knows what the name of your module is. If you C-x C-f lib/Foo/Bar/Baz.pm, then the package declaration at the top will say Foo::Bar::Baz (and will auto-create lib/Foo/Bar for you). I've been using this for a few months and realized that it's too convenient to keep to myself<nobr> <wbr></nobr>:)</p> jrockway 2007-05-10T20:17:14+00:00 journal Planet Catalyst in Japanese http://use.perl.org/~jrockway/journal/31379?from=rss <p>Planet Catalyst is now bilingual!</p><p>I've been noticing that a lot of Japanese bloggers have been blogging about Catalyst, so I asked <tt>jwang++</tt> to set up a Japanese language Planet Catalyst. The result is here:</p><p><a href="http://planet.catalystframework.org/jp/">http://planet.catalystframework.org/jp/</a></p><p>This is in addition to the English version at:</p><p><a href="http://planet.catalystframework.org/">http://planet.catalystframework.org/</a></p><p>Even if you don't read Japanese, you might find the code examples intriguing. If you find something that looks particularly interesting, I'll translate it and post it (with the permission of the original author).</p><p>Finally, if you'd like to have your blog included, please let us know (#catalyst-dev on irc.perl.org).</p><p>Thanks to all the contributing bloggers!</p> jrockway 2006-10-22T06:11:14+00:00 journal