"Perl on NetBeans " is intended for Perl programmers who want the intuitiveness of a great editor with the ease of being able to execute the program without having to do it through a command Interpreter. Also, it has the capability to inspect the austerity of your Perl programs, and format the same in accordance to the best practices and conventions.Features of Beta 2 Release
- Perl Editor
- Perl file support
- Perl module support
- Syntax highlighting
- Brace matching
- Export code as HTML
- Perl Project
- Create project with new sources
- Create project with existing sources
- Open existing project
- Add new file to project
- Add existing file to project
- Code Execution
- Code execution
- Code execution with command line arguments
- Syntax checking
- Source code formatting (using Perl::Tidy)
- Source code analysis (using Perl::Critic)
- Integrated Perl-Doc
- Configuration using the Options Panel
- General Options
- Perl Tidy
- Perl Critic
- Integrated versioning system (SVN/Git/Hg)
This IDE requires the following to be installed on your system for the IDE to work properly:
- Active-Perl v5.16 (or Perl::Critic and Perl-Doc installed with your existing Perl installation)
- Java 6
- Windows XP/7/8
- Mac OS
The installation of "Perl On NetBeans" can be summarized in the following steps:
- Download: http://code.google.com/p/perl-on-netbeans
- Extracting and run the binary.
Once the project is downloaded and extracted, you need to go to the folder perlonnetbeans/bin and use the perl_on_netbeans executable. The start-up screen is as shown below:
The IDE currently has the following features.
EditorPerl File Support. Any Perl file can be opened in the editor and all available features would be available.
Perl Module Support. Any Perl module file can be opened in the editor and all available features would be available.
Syntax Highlighting. As shown above, Perl files and modules are displayed with syntax highlighting in the editor. You also get the option of customizing the highlighted colors to your preference. Go to Tools -> Options -> Fonts and Colors. From the dropdown, select Perl and then customize as much as you want.
Brace Matching. This feature lets you understand the brace completion. If you create a brace mismatch, it would be highlighted in “RED” in the editor. Else, clicking on a brace will highlight the corresponding “opening/closing” brace.
Export Code as HTML. You can export Perl code to HTML format, using the bundled Perl::Tidy module. To do that, just open any file in the editor and click on the generate HTML button. The output HTML can be configured from the Options panel.
A Perl project can be defined as a collection of Perl files that can be logically grouped together. The basic operations on a Perl project are outlined below.Create New Project. To create a new project, click on the “New Project” icon on the toolbar or select “File -> New project”. The following screen is displayed:
Select “Perl” in the category and “Perl Project” under “Projects”. The subsequent screen will ask for the location where you want the project to be saved and will create a folder by that name with the project sources. The IDE will also open the project for further activities.Create Project with Existing Sources. Assuming a scenario where you have a few files that you want to create a project with and then use them. Here you can create a project with existing files using the newly available project type. Please note that all the selected files are imported to the project location and all modification would be done to the copy inside the project location.
Open Project. To open an already existing project, select the “Open Project” icon in the toolbar or go to “File -> Open Project”. This opens up the project selection dialog box and enable you to select am existing Perl Project to be opened. Perl project have been assigned a different icon to distinguish them from other kinds of projects, as shown below.
Add New File to Project. A new file can be added to any project by Right Click on the project node and then by selecting “New ->Other” as shown below:
This opens-up the subsequent window for selecting the file type and locations. Select the “Perl” category and then select “SamplePerlFile.pl” as the file type. The subsequent windows will ask for the location where the files should be saved. This should be ideally left on the IDE to decide as it selects the code folder automatically.Add Existing File. To add an existing file to a project, select the project node and then click on the “Add existing file” icon as shown below. This will present you with another dialog window where you can select the files. Once the files are selected, they would be copied over to your project and be available under the project for all purposes.
Check Files for Syntax Errors
This feature enables you to check the syntax of the file that is currently selected in the editor. To execute any specific file that is currently selected in the editor, click on the "Syntax Check" button on the toolbar as shown below. This checking happens based on the version of the Perl compiler that is currently installed on your system.
More information, about source code analysis, integrated PerlDOC support, and the Options panel, see http://code.google.com/p/perl-on-netbeans .