spuzh wrote: Which windows I need to open in UE to work with Perl?
spuzh wrote: How can I execute it and see directly result of my script?
By configuring a user tool which runs the perl interpreter with the file name of active file as parameter. Open Advanced - Tool Configuration
and setup the tool for running Perl interpreter with name of active file. Two examples on how to configure such a tool are given above. I don't have installed Perl interpreter and of course don't see into which directory you have installed the Perl interpreter. So I can't give you a definite answer how to configure the tool. In general you would need to enter respectively select after pressing button Insert
On the tab Command
Menu item name: Run Perl Script (or whatever you like as name)
Command line: "Full path to Perl program files directory\perl.exe" "%f"
Working directory: %p
Toolbar bitmap/icon (file path): Full name of a *.bmp or *.ico containing a 16x16 or 24x24 iconYou can leave the field for the file name of the bitmap/icon file empty if you don't have a suitable bitmap or icon file.
On the tab Options
Program Type: DOS program
Save active file: checked
Save all files first: not checked
On the tab Output
Command Output: Output to list box
Show DOS box: not checked (checked if script requires user input during execution)
Capture output: checked (not checked if script requires user input during execution)
Replace selected text with: No replace
Close the configuration dialog with button OK
. You see now in menu Advanced
the just configured user tool ready for execution by clicking on the menu item. You see also the hotkey assigned to the user tool. The hotkey can be modified at Advanced - Configuration - Key Mapping
. The command name for first user tool is AdvancedUserTool1
You can also right click on any toolbar, left click on Customize Toolbar
and add User Tool 1
with the toolbar customization dialog to any toolbar for execution by clicking on the symbol of the tool. The symbol is loaded from the specified bitmap or icon file if you have configured one.
Now when you execute the user tool, UltraEdit saves the active file and starts Perl.exe with the full name of the active file as parameter. The working directory for Perl is set to the directory of the script file. The output of the Perl script is captured to the output window automatically displayed if capturing is enabled because no user input during script execution.