Perl Development Environment Setup (Komodo Sublime UE)

Source: Internet
Author: User
Tags ultraedit

Komodo IDE + ActivePerl



The most common, entry-level, fool-mounted configuration.

But now I use sublime-based, cross-platform are very useful, and plug-in really many, their own development convenience.


Sublime



Create a new

Tools->build system->new Build System. Enter the following:

{
"cmd": ["Perl", "-w", "$file"],
"File_regex": ". * ON (. *) line ([0-9]*)",
"Selector": "Source.perl"
}


Save As file name Perl.sublime-build



Ultra Edit


Because of the test environment WIN, not even the external network, so in the use of their own UE.

There is no installation package directly after the Copy Perl installation folder is used, and CMD is engaged.


Http://blog.chinaunix.net/uid-639115-id-139939.html


The Perl language does not have an integrated development environment, writes Perl programs in Notepad or WordPad, and then saves files in. pl format to run. Since Perl is an explanatory language, it does not need to be compiled, so a written program can be run directly by double-clicking on it, assuming that the Perl plugin is installed.


of course, writing Perl in Notepad is a very troublesome thing, because keywords cannot be clearly expressed. Here's a look at my development environment, which is as convenient as the C language development environment.

Installation:

First install UltraEdit, I use the Chinese version, from the Thunderbolt should be downloaded, serial number on the Internet. After the installation is complete, see if it can run smoothly. Then download the ActivePerl plugin, which should be found on the thunderbolt or the Chinese army. You won't see any changes after the installation is complete. However, you should be able to run the Perl program at this time. You can try opening the UltraEdit, and then create a new document that is saved as a. pl file (This must be saved, otherwise the keyword will not be highlighted). When you try to write two lines of Perl, you'll be amazed to find that the keywords are already highlighted.

Programming and debugging:

How does the Perl program work? Click on the Advanced--dos command--write Perl test.pl at the command line, where "test.pl" is the file name you saved, select the location of your files in the working directory, then click OK to run. is not very surprised, there are more magical. You can output your results to the DOS interface by checking the DOS window shown in the DOS command just now. If the DOS window is gone, then add a line of command "system" ("pause") at the back of your program, so that the DOS interface will not run away.

Configuration:

do you think that every time you input DOS commands is verbose, then I tell you, there is a better way. Click Advanced--Tool configuration--click Insert in the Popup tool configuration.

1. In the menu item name, type Perl

2. Click Browse on the command line-find the Perl folder under the C drive of my computer-open the Bin folder-select Perl.exe, then click on to open it. A line of strings such as C:perlinperl.exe is then generated. Then add a space to the back and write "%f". Now it looks like C:perlinperl.exe "%f", and it's no problem that you copy this directly from the past.

3. The following line is the working directory, fill in the%p.

4. The next line is to add an icon, this is all right, but you'd better add one. I am the desktop screen, and then select the Perl program of the icon, is that a soft hat and four stars, intercepted, saved into BMP format, and then the icon of the line click Browse, find just saved this icon can be.

5. Then click on the output on the tab above, tick "Show dos window" "Capture output" "Output to List box" "Do not replace".

OK, click Apply, OK. Now that you click Advanced, you will find that the bottom command is Perl, and then you can run the currently written program by clicking on it. Shortcut keys are ctrl+shift+0. If you feel that clicking on advanced and then clicking on Perl is not cool enough, can you do it? Perl executes the commands on the toolbar, just like C + +, click on it to do much better.

The answer is yes, I'll tell you what to do now. Point advanced--configuration--toolbars/Menus--Customize--then click on the "Customize Toolbar" on the right. Find "user tool 1", then click the left arrow and add it to the left. And then go all the way. Does the Perl icon appear on the far left of the toolbar and try to run the Perl program?

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Perl Development Environment Setup (Komodo Sublime UE)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.