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

Using Travic-CI and installing Geo::IP on Linux and OSX

Since the article published by Neil Bowers on using Travis CI for CPAN distributions I fell in love with the service. I provides early feedback to when I break something and makes me pay more attention to the changes I make. I just wish the reopened they had more platforms available.

Anyway, one of my applications uses Geo::IP. I keep having problems installing it on my own machines and when I turned Travis-CI on for this particular distribution everything broke.

Luckily, after 2 hours of fighting I think I managed to establish the correct procedure.


Using Travic-CI and installing Geo::IP on Linux and OSX


Pro: Test diagnostic messages using diag, note, and explain

In addition to the various functions that improved versions of the ok() function such as is and isnt, Test::More also provide a few functions to help displaying extra diagnostic messages.


Test diagnostic messages using diag, note, and explain


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


Do you want to improve your Perl?

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