Perl.com 
 Published on Perl.com http://www.perl.com/pub/a/1998/07/review.html
See this if you're having trouble printing code examples

 

Perl Builder IDE Debuts
By Brent Michalski
July 22, 1998

Overview:
Perl Builder, by Solutionsoft, is the first integrated development environment (IDE) for Perl. It allows you to develop and test Perl applications in a Windows 95/98/NT environment.

Test Equipment:
I tested Perl Builder on a machine with a Cyrix 6x86/200MHz processor and 48Mb RAM using Windows 95 and then the same machine using Windows 98. Both of these test machines used the ActiveState Perl port. I also tested Perl Builder on a Pentium 166 with 96Mb RAM running Windows NT. This machine used the latest Gurusamy Sarathy port of Perl.

Installation:
Installing Perl Builder took about 5 minutes. It was very simple and I had no installation problems. I was surprised by the nice, clean interface and yet the program was only around 750kb in size before installation! To me, this is remarkable in an age where IDE's can easily take over 100Mb of space. Granted, Perl Builder is really just a text editor that integrates with Perl so there are no libraries or any Perl-related files included with the program.

To use Perl Builder, you need to have Perl installed on your system. You can use either the ActiveState Perl port or the "Gurusamy Sarathy" port of Perl. Neither of which come with Perl Builder, but Solutionsoft does provide links so that you can easily download them. I recommend the "Gurusamy Sarathy" version.

Once installed, my first task was to run through the tutorial provided. The tutorial walks you through creating a "mailto" form using an HTML form that they provide. It worked as advertised and was an easy-to-follow tutorial that provides you with a good overview of the IDE.

Programming Environment
Perl Builder is basically a text editor that has been written specifically for writing Perl scripts. Perl Builder provides a simple programming environment that is easy to get comfortable with. The different windows in the IDE are "tabbed" for easy access. The normal tabs are Main Script, Input Values, and Output: HTML/Text. Other tabs, like errors, are added as needed.

The Perl Builder Window
Figure 1: Perl Builder's visual editor

The Main Script tab is the area where you actually write the script. The code that you write is automatically color-coded by Perl Builder and the colors are user-customizeable Having color-coded Perl code makes viewing the code much easier. I found that once you get accustomed to the colors, you can quickly scan the code for what you are looking for.

The Input Valuestab allows you to specify either the values that you would have sent from an HTML form if you are writing a CGI script. Or, from STDIN if you are writing a non-CGI script.

The Output tab shows you what output your Perl application produced. If you are writing a CGI script, there is a button on this tab that allows you to view the code in a web browser. Perl Builder actually takes the output from your script, and produces a local HTML file for the browser view.

The Errors tab does exactly what you would expect it to do, it shows you any errors that were generated by your script. The feature I liked here is that you can double-click on the error, and you are taken right to that line of code on the Main Script tab.

When a CGI script generates one or more e-mail messages, Perl Builder also provides a tab that shows you what the e-mail(s) would look like.

Debugging
Perl Builder includes some great features for debugging your code. You can set breakpoints, watches, step through your code or do just about anything that an IDE debugger should do. You can also run with "strict" or evaluate your code with the -w flag.

Nice Features
Perl Builder has many nice features. My favorites were:

Weaknesses
Perl Builder is a great product, but there were a few items that I'd like to see addressed.

Wrapping It Up
Overall, Perl Builder is a great program and is something that should have been developed a long time ago. It is a great tool for both beginning Perl programmers, and experienced Perl programmers. Perl Builder's clean interface and powerful features take much of the unnecessary work out of Perl programming.

While it is not perfect, and can't handle some of the more complex Perl programs, it is a great environment for developing most of your CGI scripts. The ability to easily test your scripts locally is something that makes CGI programming much easier.

The price for Perl Builder is $149. Although I think that the price is reasonable, I think it would do better if the price was around the $99 range. Perl developers have become accustomed to free software and I think that they may have a hard time spending almost $150 for a "helper" program.

Overall, I give Perl Builder a 4.5 out of 5 camel rating.

Author's note: I was contacted by Solutionsoft and told that a version 1.0a would be released sometime this week. Version 1.0a is supposed to fix many of the bugs that we found in version 1.0. An update to this article will be added when I have had a chance to evaluate the new version.

Perl.com Compilation Copyright © 1998-2006 O'Reilly Media, Inc.