Developing Perl applications using EasyEclipse 1.0
21 July 2006It seems to be a common trend that once a successful platform is in place, and also possible extensions are available for that platform, someone out there packages everything and creates a distribution so that beginners can use the platform and extensions without much learning curve.
One such platform is Eclipse, and one such distribution is EasyEclipse.
EasyEclipse packages Eclipse with many such extensions and customizes for various development environments such as Java(Desktop, Enterprise, Mobile), PHP, Perl, Python, Ruby etc.
I’ll discuss how to use EasyEclipse to write Perl applications. Specifically we’ll use EasyEclipse for LAMP distribution. I’ll be using Microsoft Windows XP as the underlying Operating System.
So let’s begin our journey.
Download EasyEclipse for LAMP (easyeclipse-lamp-1.0.2.exe) for Microsoft Windows from http://www.easyeclipse.org/site/distributions/index.html
Installing EasyEclipse for LAMP 1.0.2
a. Double click easyeclipse-lamp-1.0.2.exe executable.
b. Press Next
c. Press “I Agree”
d. Choose your destination folder and press Install
e. Press Close
Now that EasyEclipse is installed, go to start -> All Programs -> EasyEclipse for LAMP 1.0.2 -> EasyEclipse for LAMP
Select a folder for Workspace location and press OK
As EasyEclipse for LAMP is installed and configured we’ll see how to create new projects.
Creating a simple Perl Project using EasyEclipse
1. Open EasyEclipse for LAMP

2. Select File -> New -> Project

3. From the New Project dialog box, select Perl->Perl Project and press Next

4. Give the Project Name as hellopl and press Finish

5. Now, from the Package Explorer on the left, right click hellopl and select New -> File

6. Give the File name as hello.pl and press Finish

7. In the editor enter the source code for a simple Perl program
$count = 0;
while ($count
$count += 1;
print “count is now $count\n”; # Gives values from 1 to 10
}

8. Select Window -> Preferences. In the Preferences dialog box, select Perl EPIC on the left pane.

9. In the “Perl Executable” text box on the right, enter the path of the perl executable on your system. If you’ve installed ActivePerl with default options it will be “C:\Perl\bin\perl.exe”

10. Press Apply and then Press OK
11. Now Select Run -> Run… In the Run dialog box, select Perl Local in the configurations pane and press the New button below it.


12. Now give the name of the configuration as Perl Config, select project as hellopl, select file to execute as hello.pl and press Apply and press Run.

13. Press OK in the “Save Resources” Dialog Box

14. The program will be executed and you’ll see the output in the Console window at the bottom.

15. If for any reason you’re not able to view the output, select Run -> Run Last Launched. You’ll see the output in Console Window.

We’ve just scratched the surface of a plethora of things that are present to help us in developing Perl applications using Eclipse provided by EasyEclipse distribution. I hope this would be a good starting point.
No comments yet