For some Perl programmers, they would like to develop their Perl program in eclipse. EPIC is a package to integrate Perl into eclipse.
Installation:
Before installing EPIC you need Eclipse, Java SDK, and ActivePerl on your system.
- start your eclipse
- click "Help-> Install New Software"
- click the "Add" button, then
- Click the "Archive" button
- enter the location: http://e-p-i-c.sf.net/updates
- click OK to continue install it
Create a Perl Project:
After install and restart eclipse, Click "File->New->Project->Perl Project". Click "Next" to create it.
Click "File->New->Project->Perl File", Click "Next" to continue

Choose your perl project and given a name for your perl file(including .pl extension)

Coding:
Below is a very simple Perl code to show the "Hello Perl" message on console.
print 'Hello Perl'
Compile and Run:
Right-Click your Perl file (HelloPerl.pl), and choose the "Run As", click "Perl Local" to compile and run this simple Perl program.
Your output message must be a "Hello Perl" sentence, otherwise you might make some mistakes during the configuration.
It's done. Enjoy it!
0 意見:
Post a Comment