Over a million developers have joined DZone.

Perl on NetBeans IDE Beta 2

· Java Zone

Discover how powerful static code analysis and ergonomic design make development not only productive but also an enjoyable experience, brought to you in partnership with JetBrains

"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
  1. Perl Editor
    1. Perl file support
    2. Perl module support
    3. Syntax highlighting
    4. Brace matching
    5. Export code as HTML
  2. Perl Project
    1. Create project with new sources
    2. Create project with existing sources
    3. Open existing project
    4. Add new file to project
    5. Add existing file to project
  3. Code Execution
    1. Code execution
    2. Code execution with command line arguments
  4. Syntax checking
  5. Source code formatting (using Perl::Tidy)
  6. Source code analysis (using Perl::Critic)
  7. Integrated Perl-Doc
  8. Configuration using the Options Panel
    1. Templates
    2. General Options
    3. Perl Tidy
    4. Perl Critic
  9. Integrated versioning system (SVN/Git/Hg)

This IDE requires the following to be installed on your system for the IDE to work properly:

  1. Active-Perl v5.16 (or Perl::Critic and Perl-Doc installed with your existing Perl installation)
  2. Java 6
Supported Platform
  1. Windows XP/7/8
  2. Linux
  3. Mac OS

The installation of "Perl On NetBeans" can be summarized in the following steps:

  1. Download: http://code.google.com/p/perl-on-netbeans 
  2. Extracting and run the binary.
The Curtain Raiser

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.


Perl 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 .

Learn more about Kotlin, a new programming language designed to solve problems that software developers face every day brought to you in partnership with JetBrains.


The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}