Welcome future Perl Maven!

What can you do here?

If you are a beginner, or would like to refresh your Perl programming knowledge, you can go over the Perl tutorial.

You will find a few advanced articles too, though most of the advanced articles are available to the subscribers of the Perl Maven Pro service only.

If you are interested to listen to or even see other Perl developers, the Perl Maven TV Show is a collection of such interviews.

Want to make sure you don't miss any of the Perl Maven articels? Sign up to the newsletter!

Recent Articles

Pro: Test without a Plan

We left the previous article with a small issue involving lack of DRY-ness.

The slight problem was, that we hard-coded the number of tests in the use Test::Simple tests => 5; expression. If we now add a new test-entry to the @cases array, we have to remember to update the test plan as well.

Not a big issue, but we as programmers are supposed to avoid any such repetition. So how can we do that?

Test without a Plan

Finding all Plack Middleware or Perl::Critic Policies

Recently I was working on a patch for MetaCPAN, but then it turned out that I don't need to implement it as it is already working. I wanted to be able to list all the modules within a namespace. Apparently it is very easy. I only need to prefix my search with module:

Finding all Plack Middleware or Perl::Critic Policies

Pro: What is the status of the current test script?

The other day I looked at the tests of the Expect module, and was surprised to see that it was still using the old-style, home-brewed testing system. Something like the one we used when we introduced test automation. I wanted to convert it to use Test::More, but in addition to an ok() function, this home-made system had a unique functionality.

At the end of the script it printed a message something along the line "Don't worry if a test fails, this can happen.", but it only printed if any of the ok() functions of the test script failed.

I wanted to preserve this functionality.

What is the status of the current test script?

Do you want to improve your Perl?

Register to the FREE Perl Maven newsletter here.
or to the Perl Weekly newletter over there