Perlblog

Welcome to Perlblog, my imaginatively-named blog on programming in the Perl programming language.

This blog is happy to be part of the Perl Iron Man Challenge.

Recent Entries

Perlbrew support in Emacs Flymake

Date: Monday, 10 October 2011, 04:00.

Categories: perl, ironman, perlbrew, emacs, flymake, perl-critic.

Good news for fans of App::perlbrew and Emacs Flymake: I've updated my fork of Flymake to include automatic support for perlbrew.

If you do a perlbrew switch in one window, the next run of Flymake in a Perl buffer will automatically update your $PATH in Emacs with the changes Perlbrew made.

Emacs-flymake-perlcritic overrides the code that was changed, but has also been updated to take advantage of the Perlbrew $PATH sync if it's available. This means that if you're using both you'll need to update both to see the changes.

If you're wondering what either of these are, the article "Perl and PHP continuous static analysis with Emacs Flymake" may help explain.

App::podweaver 1.00 (belatedly) released

Date: Sunday, 9 October 2011, 21:59.

Categories: perl, ironman, pod-weaver, app-podweaver.

Yanick Champoux has posted the first of what promises to be an interesting series of blogs: Taming Pod::Weaver.

In it he mentions App::podweaver, which reminded me - a year after the fact - that I hadn't released a stable release yet.

So I have. Should be hitting a CPAN mirror near you soon.

Biggest change is that it should now respect perlbrew installs.

I followed with interest the discussion and excitement last month in a few Perl blogs about people discovering Emacs Flymake.

Being a long-time Emacs user this seemed really interesting to me, but I don't tend to waste a huge amount of time making outright syntax errors.

What I really wanted was something like the static analysis that a modern IDE does for you while you type.

So I hooked up Perl::Critic and PHP_CodeSniffer to Flymake, and here's how you can too.

Having been a little busy for the past month and a half, my attempts to do the next Perl Template Roundup got delayed from September into October, partly by adding a number of new engine plugins to Template::Benchmark:

Support for pure-perl mode Text::Xslate was also added and two new cache-types for Template::Sandbox (Cache::FastMemoryCache and Cache::Ref::FIFO).

Then I had to sit around and wait for spare CPU time to actually run the multiple-days of benchmarks, unfortunately this clashed with me using that computer as I rushed to release stable versions of my other projects in anticipation of being too busy starting my new job.

Once the projects were out the door I could run the benchmarks, which completed mid-October, just in time for that whole "too busy" thing to kick in as I tied up loose ends before my start date.

Anyway, it's now November, and I figured I ought to do something about these reports... so here you go: the October 2010 Perl Template Roundup (belatedly).

In the next few weeks I'll be starting to gather data for the September 2010 edition of Template Roundup, and so now is your last chance for any requests or suggestions to make it into the report.

Take a look at the previous reports or the list of template engines supported by Template::Benchmark and let me know if there's a template engine you'd particularly want to see benchmarked, or some feature that isn't covered.

You can either make your suggestion in the comments thread below or contact me via the contact page.

I'm quite looking forwards to seeing how well Text::Xslate does this time around, it was far and away the fastest fully-featured template engine in a persistent environment last time, but the recent changelogs suggest some great strides have been made to make it even faster in the past month.

Browse Perlblog Subscribe to Perlblog

By year: 2010 2011

Or by: category or series.

© 2009-2011 Sam Graham, unless otherwise noted. All rights reserved.