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