Perl, if purely just as a script function to write dozens of lines of code, implement small functions, with nodepad++, EditPlus is enough, if it is enterprise-class development, hundreds of PM modules, hundreds of thousands of lines of code debugging, with these editors is far from enough! At this point, the enterprise-class IDE has an advantage. Below in detail, under window use eclipse+epic+padwalker to build the Perl development environment!
"Step One": Download and install the latest Perl interpreter ActiverPerl5.20.
Http://www.activestate.com/activeperl/downloads
"Step two": Download and install the JDK
Http://www.oracle.com/technetwork/java/javase/downloads/index.html
"Step three": Download and Eclipse, note and JDK, OS version compatible
http://www.eclipse.org/downloads/
"Step four": Download the perl Eclipse IDE plugin Epic
- Method One: Help-->eclipse marketplace--> input epic--> Select Install and update
- method Two: Help->install New software-> Enter the following URL-->next,next install
epic-http://e-p-i-c.sf.net/updates/testing
Note:
1. Two types must be proxy settings, Proxy Setup method:
Window->preferences->general->network connections->manual Proxy Configuration
2. After installation, you can see the camel icon, you can write code inside!
"Step five": Download the package Padwalker required for Perl debug
- method One: Use ppm to install View->all packages-> input padwalker-> Right-click to select the package, tap the upper right corner =
- Method Two: Manual installation, the following is the manual installation steps
1. padwalker:http://www.bribes.org/perl/ppm/
2. Unzip the downloaded file
3. Copy: blib/lib/padwalker.pm to Perl/lib (Perl installation path)
4. Copy: Blib/arch/auto/padwalker to Perl/lib/auto
5. Test: Create a new *.pl file and write the following
My $input = <STDIN>; #input from user
Print $input;
Then in print $input, set breakpoints, right-click Debug as--Perl to test.
Note: It may not be possible to debug after installation, can be resolved as follows.
[Plain]View PlainCopy
- Modify the perl/lib/cwd.pm file
- Sub _WIN32_CWD {
- if (eval ' defined &dynaloader::boot_dynaloader ') {
- Modified to:
- Sub _WIN32_CWD {
- if (defined &dynaloader::boot_dynaloader) {
Reprinted from http://blog.csdn.net/jerry_1126/article/details/43163107
Eclipse+epic Building a Perl development environment