Perl 5 Porters Mailing List Summary: October 20th-26th

Hey everyone,

Following is the p5p (Perl 5 Porters) mailing list summary for the past week (including Monday the 26th). Enjoy!

List::Slice - Slice-like Operations for Lists

How many times have you needed to do this?

my @found_names = grep { /^[A-D]/ } @all_names;
my @topfive = @found_names[0..4];

Or worse, this.

my @topfive = ( grep { /^[A-D]/ } @all_names )[0..4];

There's got to be a better way!

Or this.

my @bottomfive = @names < 5 ? @names : @names[$#names-5..$#names];

Or this.

my @names
        = map { $_->[0] }
        sort { $a->[1] <=> $b->[1] }
        grep { $_->[1] > $now }
        map { [ $_->{name}, parse_date( $_->{birthday} ) ] }
my @topfive = @names[0..4];

There's got to be a better way!

There's got to be a better way!

Now there is! Introducing: List::Slice!

A Date with CPAN, Part 3: Paving While Driving

[This is a post in a new, probably long-ass, series.  You may want to begin at the beginning.  I do not promise that the next post in the series will be next week.  Just that I will eventually finish it, someday.  Unless I get hit by a bus.]

Last time I went into more details about how I might go about creating a new date module, and what I would expect it to achieve.  This time we clear out some housekeeping and try to nail down a design strategy.

HTTP::Response may have a different definition of success than you do

The is_success() method which HTTP::Response provides is not necessarily a full indicator of success. This has bitten me before, so I thought it was worth writing about. Perhaps it may save you some heartache down the line.

Read the full post.

More Dancer2 goodness

Task::Dancer2 0.04 and Dancer2::Plugin::Queue 0.005 are on their way to CPAN. D22::P::Queue had test failures preventing it from installing. Task::Dancer2 re-enabled Queue in the bundle, and also the REST plugin.


Dancer2 module updates now on CPAN

Last night Task::Dancer2 0.03 and Dancer2::Session::JSON 0.002 made their way to CPAN. Thanks to xdg and Yanick for their help with this. More updates to come in the following days.

Thank you to those who attended and sponsored the Perl Dancer Conference 2015 in Vienna this week! Looking forward to seeing you next year (sorry I had to miss this one).

Most importantly, thank you to the Dancer Core Team for extending an invite to me. I am proud to be one of you :)

Outthentic - yet another test framework

Outthentic is a black box testing framework.

Instead of hack into objects and methods it deals with text appeared in stdout.

This is very first CPAN release to play with:

$ cpanm Outthentic

This is super fast intro:

    # Create a story file:
    # Story is just an any perl script that yields something into stdout. 

    $ nano

      print "I am OK\n";
      print "I am outthentic\n";

    # Create a story check:

    $ nano story.check

      I am OK
      I am outthentic

    # run a story runner and enjoy your test results:

    $ strun

Follow GitHub pages for documentation

Perl 5 Porters Mailing List Summary: October 12th-19th

Hey everyone,

I apologize for the delay. This summary should have been sent yesterday but I was busy at the Dancer Conference in Vienna.

Following is the p5p (Perl 5 Porters) mailing list summary for the past week (including yesterday and this morning). Enjoy!

About is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is hosted by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.