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: Moving over to Test::More

What we saw in the earlier articles and screencasts, was an introduction to testing with Perl. We made some nice progress but we kept using Test::Simple which only provides a single ok() function with some additional features.

When a test case succeeds we get a nice ok N printed, but the problem is that even when a test case fails we only get a simple not ok with the title of the test case, if we set one, and the line number. We could get so much more information. That's where Test::More, and later a lot of other testing modules come in.

They allow us to be much more explicit in our testing functions and to get much more detailed error message that just not ok.


Moving over to Test::More


How to sort a hash of hashes by value?

Before attempting to sort a hash of hashes by values, one should make sure to be familiar with the question: How to sort a hash in Perl?


How to sort a hash of hashes by value?


Pro: prove, the harness

Now that we finally managed to separate the test data from the test code, nothing stops us from expanding the number of tests. We can hire an expert in the "sum" function, and let her create a file full of test cases.

The problem we encounter is that we are now going to be flooded with lines of success, while what are mostly interested in, being the critical people we are, the few failures. How can focus on the failures?


prove, the harness


Do you want to improve your Perl?

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