Perl Webmastery

How to install Perl CPAN Modules Offline

I have a situation where I’m able to download a CPAN module distribution, but I’m behind a firewall and I therefore can’t install the module using the cpan installer. The recommended offline solution is to use the CPAN Mini Mirror. But that presents the same problem: It expects to have Internet access.

The solution is simple – don’t use the CPAN installer! Just do the Makefile yourself. Here is how I installed the Test::Class module:

tar xzf Test-Class-0.37.tar.gz
cd Test-Class-0.37
perl Makefile.PL
make
make test
make install

If you can’t do it the easy way, don’t forget you can do it the “Old School” way!

Be the first to comment - What do you think?  Posted by admin - September 26, 2012 at 10:49 am

Categories: Perl Webmastery   Tags:

Installing Eclipse IDE on Windows 7

Eclipse is a programmer’s text editor originally developed by IBM.

When you try to install and launch the Eclipse IDE (Integrated Development Environment) on Windows 7, it may tell you that it can’t find Java or JRE (Java Runtime Environment). After you install Java from http://www.java.com/ it may STILL tell you that it can’t find Java or JRE.

Here is the secret: If you are running 64-bit Windows 7, you will need to install BOTH 32-bit and 64-bit versions of Java. You can get the Java downloads here. The problem is that Eclipse (or the Yoxos Eclipse installer) do NOT tell you that you need both, or what the problem is. They only tell you that they can’t find Java.

Be the first to comment - What do you think?  Posted by admin - September 17, 2012 at 6:00 am

Categories: Perl Webmastery   Tags: , , ,

Test-Driven Development in Perl: How To Set Up Your Testing Environment For Perl TDD

The Genealogy Webmaster’s Journal is a series of articles advancing the technological State of the Art underlying our online genealogy.

Test-Driven Development has several flavors when practiced in Perl. I was looking for a way to transfer my experience with jUnit, PHPUnit, and CppUTest to my Perl development. I have created a set-up that works for me, and I thought I’d share that with you!

This essay does not contain a lot of explanation. I’m assuming you can follow the links and read the tutorials. If you’re like me, the missing piece is the working setup – how the files are organized for my test environment.

How to Use Test::Class for Perl Unit Testing and Perl TDD

So far, the Perl CPAN module Test::Class seems to fill the bill. Start by reading the documentation:

  • Test::Class Read this page from top to bottom. Take particular note of the section, “Help for confused jUnit users.” See the “Community” section for links on where to discuss and get help.
  • Test::More Test::Class sits on top of Test::More, so be sure to read this documentation and tutorial if you’re not already familiar with how this style of Perl testing works. Note the links to “Related Modules” at the upper right of this page.
  • Test::Tutorial A more complete tutorial for Test::Simple and Test::More.
  • Prove We will use the Perl Application, prove, to run our tests.

Perl Testing Bookmarks Including Perl CGI Testing

I also found the following articles useful: Read more…

Be the first to comment - What do you think?  Posted by admin - September 3, 2012 at 6:26 pm

Categories: Perl Webmastery   Tags: , , , , , ,