Notepad ++ configure Perl ide

Source: Internet
Author: User
Tags perl script

I am not familiar with the ultraedit lisence in the company. I can only switch to the open-source notepad ++,

It takes only half a day to know how to configure and run Perl.

 

1. Use notepad ++ to open the. pl file,

 

2. Open the Run window and enter Perl-W "$ (full_current_path)" in the following box )",

Save and save it as a command. The name is run_perl, And the shortcut key is f9. then press F9 to run it.

 

3, but you can only see that the command line window is flashing. To stop it, you need to add a line of code: My $ waiting = <stdin>;

 

The instance code is as follows:

#! Usr/bin/perl
Use strict;
Use warnings;

My $ config_file = "game_config.text ";
My $ config_data_file = "congif. dat ";

Print ("press enter to quit ");
My $ waiting = <stdin>;

 

After the code is added, press F9 to retain the command line window to view the output result.

 

4. If debugging is required, run the same new command, but change the parameter to Perl-d "$ (full_current_path)". How can I debug the command with a prompt?

 

5. If you need to modify the shortcut key of the debugging command: settings-> saved cut mapper-> run commands, drag it to the bottom to view the command we just saved and edit it.

 

6. Note: If you run the Perl script through notepad ++, the default directory is the notepad ++ installation directory, not the Perl script directory,

You need to install nppexec Plugin in plugins-> plugins manager on notepad ++, and then check nppexec --> follow $ (current_directory). In this way, the default directory for running Perl scripts will be the current directory.

I found it from my experience running python on the Internet. I don't know why, O (handler _ handler) O Haha ~

 

PS: reprinted, please keep the following
Information Author: smilelance from:

Http://blog.csdn.net/smilelance



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.