SlideShare a Scribd company logo
1 of 23
Download to read offline
Perl On NetBeans
User Guide for version 0.5 (Beta)
Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra
1
Contents
Scope.............................................................................................................................................................3
Features of Beta 5 release ............................................................................................................................3
Pre-requisites................................................................................................................................................3
Installation ....................................................................................................................................................4
Features ........................................................................................................................................................4
1. The Editor..........................................................................................................................................4
1. Perl file support.............................................................................................................................4
2. Perl module support .....................................................................................................................5
3. Syntax highlighting........................................................................................................................5
4. Brace matching .............................................................................................................................5
5. Export code as HTML ....................................................................................................................6
6. Toggle comments..........................................................................................................................7
7. Theme support..............................................................................................................................7
2. Perl Project........................................................................................................................................7
1. Create new project .......................................................................................................................7
2. Create project with existing sources.............................................................................................8
3. Open Project .................................................................................................................................9
4. Add new file to project .................................................................................................................9
5. Add existing file to project..........................................................................................................10
6. Project Copy/Move/Delete operations.......................................................................................10
7. Support for Perl-Dancer2 project ...............................................................................................11
3. Check Files for Syntax Errors...........................................................................................................12
4. Code execution ...............................................................................................................................13
1. Execute files ................................................................................................................................13
2. Code execution with command line arguments.........................................................................13
5. Source Code formatting..................................................................................................................15
6. Source code analysis.......................................................................................................................16
7. Integrated PerlDOC support ...........................................................................................................17
8. Options Panel..................................................................................................................................18
1. Templates....................................................................................................................................18
2. General........................................................................................................................................18
Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra
2
3. Perl::Critic....................................................................................................................................19
4. Perl::Tidy .....................................................................................................................................19
9. Integrated versioning system..........................................................................................................20
Feedback.....................................................................................................................................................22
Web Links....................................................................................................................................................22
Please note: Projects created with earlier versions (0.3 and below) of this software will not be
recognized as valid projects. To import all projects previously created with this software, please create
a “Project With Existing Sources” and import the project.
Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra
3
Scope
“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 5 release
1. Perl Editor
1. Perl file support
2. Perl module support
3. Syntax highlighting
4. Brace matching
5. Export code as HTML
6. Toggle comments
7. Theme support
8. Keyword assistance
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
6. Project Copy/Move/Delete operations
7. Support for Perl-Dancer2 projects (Incubating)
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)
Pre-requisites
This IDE requires the following to be installed on your system for the IDE to work properly:
1. NetBeans 7.4 or greater
2. Active-Perl v5.16 (Dancer2, Perl::Critic and Perl-Doc installed with your existing Perl installation)
3. Java 7 or greater
Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra
4
Installation
The installation of “Perl On NetBeans” can be summarized in the following steps:
1. Install NetBeans
2. Download and install the plugin from plugin central or go to Tools -> Plugins from your NetBeans
installation
Features
The IDE currently just has the following features.
1. The Editor
1. Perl file support
Any Perl file can be opened in the editor and all available features would be available.
Figure 1 - A Perl (*.pl) file in the editor
Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra
5
2. Perl module support
Any Perl module file can be opened in the editor and all available features would be available.
Figure 2 - A Perl module (*.pm) file in the editor
3. 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.
Figure 3 - Syntax highlighting options from the Options panel
4. 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.
Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra
6
Figure 4 - Brace matching in action
5. 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.
Figure 5 - The toolbar option to export code as HTML
Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra
7
6. Toggle comments
Select any block of the code and press Ctrl + / to comment or un-comment the block or the following
toolbar option to comment/un-comment selected blocks of code.
Figure 6 - Menu option to comment selected block
7. Theme support
Perl files will be displayed in any theme that you select for your IDE.
Figure 7 - Theme support for Perl files
2. Perl Project
A Perl project can be defined as a collection of a set of Perl files that can be logically grouped together.
The basic operations on a Perl Project have been outlined below.
1. 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:
Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra
8
Figure 8 : Creating New PERL Project
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.
2. 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.
Figure 9 - Creating a project with exiting sources
Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra
9
Figure 10 - Selecting the files for the project
3. 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.
Figure 11 : Opening an existing PERL Project
4. 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.
Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra
10
Figure 12 : Adding a new PERL file to project
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.
5. Add existing file to project
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.
Figure 13 : Toolbar icon to add existing file to a project
6. Project Copy/Move/Delete operations
The new version enables project level operations to copy/move/delete projects. This is an adaptation
of the native project level operations on the Netbeans platform.
Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra
11
Figure 14 - Project level operations
7. Support for Perl-Dancer2 project
Before creating a Dancer project, the Dancer binaries need to be linked to the IDE. This needs to be
done from the Options -> Perl On Netbeans -> General tab.
To create a Dancer project, please ensue that you have the proper modules installed. And select New
Project -> Perl Dancer Project
Figure 15 - Perl Dancer Project
The module is used to create a template application and then you can open bin/app.psgi and run it
Figure 16 - Dancer main file
Running any other file within a “Perl Dancer” project will give the following message.
Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra
12
Figure 17 - Running a non-app file in a Dancer2 project
Running the bin/app.psgi file creates an instance of the internal webserver and launches the default
page.
Figure 18 - Application in action
From here you can use your experience to tweak the application as you want.
Note: Please remember to shut-down the program before you want to start it again. Else the port
would be in-use and the listener cannot be installed on the default port.
3. 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 “Run -> Compile File” button as shown
below. This operation can be accessed using the “F9 key”. This checking happens based on the version of
the Perl compiler that is currently installed on your system.
Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra
13
Figure 19 : Syntax checking results
4. Code execution
1. Execute files
This feature enables you to execute the file that is currently selected in the editor. To execute any
specific select it in the editor and click on the “Execute” button on the toolbar as shown below. This
execution happens based on the version of the Perl compiler that is currently installed on your
system or selected from the options panel (described below).
Figure 20 : Toolbar icon to execute selected PERL file
2. Code execution with command line arguments
The latest release allows one to supply command-line argument(s). To execute a file with command
line options, select the file in the editor and click the “Execute (with command line options)” button
on the toolbar as shown below. On using this feature, a dialog box pops up, in turn facilitating the
input of command-line parameters to be used in one’s program.
Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra
14
Figure 21 : Toolbar icon to execute selected PERL file with command line arguments
Figure 22 : Providing the command line arguments
Subsequent Execution of the script
Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra
15
Figure 23 : Results of execution with the command line arguments
5. Source Code formatting
This feature enables you to perform source re-formatting as per Perl::Tidy. To perform analysis, select the
file in the editor and click on the code formatter button on the toolbar as shown below. This will run the
source code formatter against the selected source.
Figure 24 : Toolbar icon to format selected PERL file
Figure 25 : Code formatting (Before)
Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra
16
Figure 26 : Code Formatting (After)
6. Source code analysis
This feature enables you to perform source analysis as per Perl::Critic. To perform analysis, select the file
in the editor and click on the code analyzer button on the toolbar as shown below. This will run the source
code analyzer against the selected source. You’ll need Perl::Critic installed.
Figure 27 : Toolbar icon to analyze source code of selected PERL file
Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra
17
The output of the analysis will be provided in the Output window, as shown in the screenshot below:
Figure 28 : Source code analysis results
7. Integrated PerlDOC support
PerlDOC support has been also made available. If you want more information about any keyword, just select it
in your editor and press on the “PerlDOC” button, and it will display the documentation in the output window.
Similarly, if you just press the button, a pop-up window will ask you for the help topic and display it in the
output window. You’ll need perl-doc installed for this.
Figure 29 - Toolbar icon to display documentation
Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra
18
8. Options Panel
The Options panel contains a section called “Perl OnNetBeans” for our usage. This tab contains 3 sub-tabs
that are utilized for various options. Also template support has been added for programming efficiency.
1. Templates
You can specify any code template that you use regularly as a shortcut here. For example “p” can
translate to “print”. So, if you add a template here, and then go to your editor with a Perl file open,
type “p” and press “tab”, and voila, this would get translated in the editor as “print”. You can add as
many templates as you want.
Figure 30 : Code template configuration panel
2. General
This tab contains the option to over-ride the default PERL installed on your machine. Let’s say
that you have PERL 5.14 installed on your machine as the default but you want to use PERL 5.16
available at a non-default location, you can point the perl.exe binary using this tab and your
program will be operated on by the executable specified here. If you do not specify anything
here, the default PERL will be used.
You can also specify any custom library file location here. These locations would be used as an
addition to your @INC in the script.
Also, the Dancer2 executables need to be pointed to at this location. The Dancer2 Path should be
the folder where the Dancer2 and Plackup scripts are installed. This is not required to be
populated if Dancer2 is installed with the default Perl installation at the default location.
Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra
19
Figure 31 : PERL binary configuration panel
3. Perl::Critic
This tab can be used to customize the code analysis options. For a complete meaning of the
options here, please refer to the URL http://linux.die.net/man/1/perlcritic.
Figure 32 : PERL::Critic (Code Analyzer) configuration panel
4. Perl::Tidy
This tab can be used to customize the code formatting options. For a complete meaning of the
options here, please refer to the URL http://perltidy.sourceforge.net/perltidy.html.
Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra
20
Figure 33 : PERL::Tidy (Code Formatting) configuration panel
We encountered a feature of “Export to HTML” and it can be configured from this panel. You can
specify the output folder of the generated HTML (project folder by default), specify if you require
a “Table Of Contents”, specify any CSS file, and also FRAME and PRE tags in the output HTML.
9. Integrated versioning system
The new version also includes integrated support for major code versioning systems including Subversion, Git
and Mercurial. The appropriate context menu options are displayed based on whether the code is connected with
a SVN/Git/Hg repository.
Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra
21
Figure 34 : A Git repo Project
Figure 35 : A SVN repo Project
Figure 36 : A Subversion file diff
Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra
22
Feedback
Since this is a community driven initiative, we would request everyone to log-on to the Facebook space for any
comments/suggestions or follow us on Twitter for staying up-to-date with the latest developments. Also for any
issues, please do log a ticket with Bitbucket on the project space as mentioned in the “Web Links” section below.
Web Links
1. Facebook page - http://www.facebook.com/PerlOnNetBeans
2. Twitter - @perlonnetbeans
3. Issue Tracker –
https://bitbucket.org/sudeephazra/perlonnetbeans/issues?status=new&status=open
4. NetBeans download - https://netbeans.org/downloads/
5. Active-Perl download - http://www.activestate.com/activeperl/downloads
6. Java download - http://www.oracle.com/technetwork/java/javase/downloads/index.html

More Related Content

What's hot

1.3 ทักษะการใช้เมาส์และแป้นพิมพ์
1.3 ทักษะการใช้เมาส์และแป้นพิมพ์1.3 ทักษะการใช้เมาส์และแป้นพิมพ์
1.3 ทักษะการใช้เมาส์และแป้นพิมพ์Chatree MChatree
 
Мови програмування. Класифікація
Мови програмування. КласифікаціяМови програмування. Класифікація
Мови програмування. КласифікаціяAndy Levkovich
 
แผนคอมป.1
แผนคอมป.1แผนคอมป.1
แผนคอมป.1bamroong
 
ใบความรู้ ที่ 2.1 เรื่อง ความรู้พื้นฐานเกี่ยวกับโปรแกรม microsoft excel 2010
ใบความรู้ ที่ 2.1  เรื่อง ความรู้พื้นฐานเกี่ยวกับโปรแกรม microsoft excel 2010ใบความรู้ ที่ 2.1  เรื่อง ความรู้พื้นฐานเกี่ยวกับโปรแกรม microsoft excel 2010
ใบความรู้ ที่ 2.1 เรื่อง ความรู้พื้นฐานเกี่ยวกับโปรแกรม microsoft excel 2010Nicharee Piwjan
 
วิจัยชั้นเรียนเพื่อพัฒนาผลสัมฤทธิ์ทางการเรียน
วิจัยชั้นเรียนเพื่อพัฒนาผลสัมฤทธิ์ทางการเรียน วิจัยชั้นเรียนเพื่อพัฒนาผลสัมฤทธิ์ทางการเรียน
วิจัยชั้นเรียนเพื่อพัฒนาผลสัมฤทธิ์ทางการเรียน โรงเรียนห้วยแถลงพิทยาคม
 
2. อุปกรณ์เทคโนโลยีสารสนเทศ (ใบความรู้)
2. อุปกรณ์เทคโนโลยีสารสนเทศ (ใบความรู้)2. อุปกรณ์เทคโนโลยีสารสนเทศ (ใบความรู้)
2. อุปกรณ์เทคโนโลยีสารสนเทศ (ใบความรู้)phatrinn555
 
16.ฮอร์โมนพืช
16.ฮอร์โมนพืช16.ฮอร์โมนพืช
16.ฮอร์โมนพืชWichai Likitponrak
 
โครงงานคอมพิวเตอร์
โครงงานคอมพิวเตอร์โครงงานคอมพิวเตอร์
โครงงานคอมพิวเตอร์supatra2011
 
Урок 17 для 8 класу - Програми для редагування аудіо- та відеоданих. Загальні...
Урок 17 для 8 класу - Програми для редагування аудіо- та відеоданих. Загальні...Урок 17 для 8 класу - Програми для редагування аудіо- та відеоданих. Загальні...
Урок 17 для 8 класу - Програми для редагування аудіо- та відеоданих. Загальні...VsimPPT
 
Урок 9 для 6 класу - Додавання тексту до графічних зображень та його форматув...
Урок 9 для 6 класу - Додавання тексту до графічних зображень та його форматув...Урок 9 для 6 класу - Додавання тексту до графічних зображень та його форматув...
Урок 9 для 6 класу - Додавання тексту до графічних зображень та його форматув...VsimPPT
 
форми подання алгоритмів
форми подання алгоритмівформи подання алгоритмів
форми подання алгоритмівNVK4
 
แบบฝึกหัด เรื่อง การเขียนผังงาน
แบบฝึกหัด  เรื่อง  การเขียนผังงานแบบฝึกหัด  เรื่อง  การเขียนผังงาน
แบบฝึกหัด เรื่อง การเขียนผังงานSaengpech Kumpo
 
แบบเสนอโครงร่างโครงงานคอมพิวเตอร์
แบบเสนอโครงร่างโครงงานคอมพิวเตอร์แบบเสนอโครงร่างโครงงานคอมพิวเตอร์
แบบเสนอโครงร่างโครงงานคอมพิวเตอร์Warunee Kantapanom
 
Урок 3. Апаратна і програмна складові інформаційної системи. Комп'ютер як при...
Урок 3. Апаратна і програмна складові інформаційної системи. Комп'ютер як при...Урок 3. Апаратна і програмна складові інформаційної системи. Комп'ютер як при...
Урок 3. Апаратна і програмна складові інформаційної системи. Комп'ютер як при...Ihor Tkachenko
 
Design and technology 3 unit 4
Design and technology 3 unit 4Design and technology 3 unit 4
Design and technology 3 unit 4Chompooh Cyp
 
คู่มือการอบรมครู การพัฒนาสื่อการเรียนการสอน ด้วย MIT App Inventor
คู่มือการอบรมครู การพัฒนาสื่อการเรียนการสอน ด้วย MIT App Inventorคู่มือการอบรมครู การพัฒนาสื่อการเรียนการสอน ด้วย MIT App Inventor
คู่มือการอบรมครู การพัฒนาสื่อการเรียนการสอน ด้วย MIT App InventorSomchart Phaeumnart
 
โครงร่างโครงงานชีส
โครงร่างโครงงานชีสโครงร่างโครงงานชีส
โครงร่างโครงงานชีสfatinminny
 

What's hot (20)

1.3 ทักษะการใช้เมาส์และแป้นพิมพ์
1.3 ทักษะการใช้เมาส์และแป้นพิมพ์1.3 ทักษะการใช้เมาส์และแป้นพิมพ์
1.3 ทักษะการใช้เมาส์และแป้นพิมพ์
 
Scratch final
Scratch finalScratch final
Scratch final
 
Мови програмування. Класифікація
Мови програмування. КласифікаціяМови програмування. Класифікація
Мови програмування. Класифікація
 
แผนคอมป.1
แผนคอมป.1แผนคอมป.1
แผนคอมป.1
 
ใบความรู้ ที่ 2.1 เรื่อง ความรู้พื้นฐานเกี่ยวกับโปรแกรม microsoft excel 2010
ใบความรู้ ที่ 2.1  เรื่อง ความรู้พื้นฐานเกี่ยวกับโปรแกรม microsoft excel 2010ใบความรู้ ที่ 2.1  เรื่อง ความรู้พื้นฐานเกี่ยวกับโปรแกรม microsoft excel 2010
ใบความรู้ ที่ 2.1 เรื่อง ความรู้พื้นฐานเกี่ยวกับโปรแกรม microsoft excel 2010
 
วิจัยชั้นเรียนเพื่อพัฒนาผลสัมฤทธิ์ทางการเรียน
วิจัยชั้นเรียนเพื่อพัฒนาผลสัมฤทธิ์ทางการเรียน วิจัยชั้นเรียนเพื่อพัฒนาผลสัมฤทธิ์ทางการเรียน
วิจัยชั้นเรียนเพื่อพัฒนาผลสัมฤทธิ์ทางการเรียน
 
2. อุปกรณ์เทคโนโลยีสารสนเทศ (ใบความรู้)
2. อุปกรณ์เทคโนโลยีสารสนเทศ (ใบความรู้)2. อุปกรณ์เทคโนโลยีสารสนเทศ (ใบความรู้)
2. อุปกรณ์เทคโนโลยีสารสนเทศ (ใบความรู้)
 
16.ฮอร์โมนพืช
16.ฮอร์โมนพืช16.ฮอร์โมนพืช
16.ฮอร์โมนพืช
 
โครงงานคอมพ วเตอร W (1)
โครงงานคอมพ วเตอร W (1)โครงงานคอมพ วเตอร W (1)
โครงงานคอมพ วเตอร W (1)
 
Алгоритми та їх виконавці
Алгоритми та їх виконавціАлгоритми та їх виконавці
Алгоритми та їх виконавці
 
โครงงานคอมพิวเตอร์
โครงงานคอมพิวเตอร์โครงงานคอมพิวเตอร์
โครงงานคอมพิวเตอร์
 
Урок 17 для 8 класу - Програми для редагування аудіо- та відеоданих. Загальні...
Урок 17 для 8 класу - Програми для редагування аудіо- та відеоданих. Загальні...Урок 17 для 8 класу - Програми для редагування аудіо- та відеоданих. Загальні...
Урок 17 для 8 класу - Програми для редагування аудіо- та відеоданих. Загальні...
 
Урок 9 для 6 класу - Додавання тексту до графічних зображень та його форматув...
Урок 9 для 6 класу - Додавання тексту до графічних зображень та його форматув...Урок 9 для 6 класу - Додавання тексту до графічних зображень та його форматув...
Урок 9 для 6 класу - Додавання тексту до графічних зображень та його форматув...
 
форми подання алгоритмів
форми подання алгоритмівформи подання алгоритмів
форми подання алгоритмів
 
แบบฝึกหัด เรื่อง การเขียนผังงาน
แบบฝึกหัด  เรื่อง  การเขียนผังงานแบบฝึกหัด  เรื่อง  การเขียนผังงาน
แบบฝึกหัด เรื่อง การเขียนผังงาน
 
แบบเสนอโครงร่างโครงงานคอมพิวเตอร์
แบบเสนอโครงร่างโครงงานคอมพิวเตอร์แบบเสนอโครงร่างโครงงานคอมพิวเตอร์
แบบเสนอโครงร่างโครงงานคอมพิวเตอร์
 
Урок 3. Апаратна і програмна складові інформаційної системи. Комп'ютер як при...
Урок 3. Апаратна і програмна складові інформаційної системи. Комп'ютер як при...Урок 3. Апаратна і програмна складові інформаційної системи. Комп'ютер як при...
Урок 3. Апаратна і програмна складові інформаційної системи. Комп'ютер як при...
 
Design and technology 3 unit 4
Design and technology 3 unit 4Design and technology 3 unit 4
Design and technology 3 unit 4
 
คู่มือการอบรมครู การพัฒนาสื่อการเรียนการสอน ด้วย MIT App Inventor
คู่มือการอบรมครู การพัฒนาสื่อการเรียนการสอน ด้วย MIT App Inventorคู่มือการอบรมครู การพัฒนาสื่อการเรียนการสอน ด้วย MIT App Inventor
คู่มือการอบรมครู การพัฒนาสื่อการเรียนการสอน ด้วย MIT App Inventor
 
โครงร่างโครงงานชีส
โครงร่างโครงงานชีสโครงร่างโครงงานชีส
โครงร่างโครงงานชีส
 

Similar to Perl on Netbeans - User Guide - v0.5

Perl on NetBeans v0.4 - User Guide
Perl on NetBeans v0.4 - User GuidePerl on NetBeans v0.4 - User Guide
Perl on NetBeans v0.4 - User GuideSudeep Hazra
 
Module 1: Introduction to .NET Framework 3.5 (Material)
Module 1: Introduction to .NET Framework 3.5 (Material)Module 1: Introduction to .NET Framework 3.5 (Material)
Module 1: Introduction to .NET Framework 3.5 (Material)Mohamed Saleh
 
Creating an Embedded System Lab
Creating an Embedded System LabCreating an Embedded System Lab
Creating an Embedded System LabNonamepro
 
Expanding XPages with Bootstrap Plugins for Ultimate Usability
Expanding XPages with Bootstrap Plugins for Ultimate UsabilityExpanding XPages with Bootstrap Plugins for Ultimate Usability
Expanding XPages with Bootstrap Plugins for Ultimate UsabilityTeamstudio
 
Module 4: Introduction to ASP.NET 3.5 (Material)
Module 4: Introduction to ASP.NET 3.5 (Material)Module 4: Introduction to ASP.NET 3.5 (Material)
Module 4: Introduction to ASP.NET 3.5 (Material)Mohamed Saleh
 
Software Developer’s Project Documentation Template
Software Developer’s Project Documentation TemplateSoftware Developer’s Project Documentation Template
Software Developer’s Project Documentation TemplateSalim M Bhonhariya
 
Autotools, Design Patterns and more
Autotools, Design Patterns and moreAutotools, Design Patterns and more
Autotools, Design Patterns and moreVicente Bolea
 
.NET Core, ASP.NET Core Course, Session 2
.NET Core, ASP.NET Core Course, Session 2.NET Core, ASP.NET Core Course, Session 2
.NET Core, ASP.NET Core Course, Session 2aminmesbahi
 
.NET framework vs .net core 3.1 commons & differences
 .NET framework vs .net core 3.1  commons & differences .NET framework vs .net core 3.1  commons & differences
.NET framework vs .net core 3.1 commons & differencesAlina Vilk
 
Inptools Manual
Inptools ManualInptools Manual
Inptools ManualMawar 99
 
MuleSoft Meetup Bangalore - March 6 2021
MuleSoft Meetup Bangalore - March 6 2021MuleSoft Meetup Bangalore - March 6 2021
MuleSoft Meetup Bangalore - March 6 2021Nagaraju K R
 
Testing in Craft CMS
Testing in Craft CMSTesting in Craft CMS
Testing in Craft CMSJustinHolt20
 
TDD for joomla extensions
TDD for joomla extensionsTDD for joomla extensions
TDD for joomla extensionsRoberto Segura
 

Similar to Perl on Netbeans - User Guide - v0.5 (20)

Perl on NetBeans v0.4 - User Guide
Perl on NetBeans v0.4 - User GuidePerl on NetBeans v0.4 - User Guide
Perl on NetBeans v0.4 - User Guide
 
Module 1: Introduction to .NET Framework 3.5 (Material)
Module 1: Introduction to .NET Framework 3.5 (Material)Module 1: Introduction to .NET Framework 3.5 (Material)
Module 1: Introduction to .NET Framework 3.5 (Material)
 
Readme
ReadmeReadme
Readme
 
Creating an Embedded System Lab
Creating an Embedded System LabCreating an Embedded System Lab
Creating an Embedded System Lab
 
Robot framework
Robot frameworkRobot framework
Robot framework
 
Expanding XPages with Bootstrap Plugins for Ultimate Usability
Expanding XPages with Bootstrap Plugins for Ultimate UsabilityExpanding XPages with Bootstrap Plugins for Ultimate Usability
Expanding XPages with Bootstrap Plugins for Ultimate Usability
 
Vc++
Vc++Vc++
Vc++
 
Module 4: Introduction to ASP.NET 3.5 (Material)
Module 4: Introduction to ASP.NET 3.5 (Material)Module 4: Introduction to ASP.NET 3.5 (Material)
Module 4: Introduction to ASP.NET 3.5 (Material)
 
Software Developer’s Project Documentation Template
Software Developer’s Project Documentation TemplateSoftware Developer’s Project Documentation Template
Software Developer’s Project Documentation Template
 
Autotools, Design Patterns and more
Autotools, Design Patterns and moreAutotools, Design Patterns and more
Autotools, Design Patterns and more
 
Edify
EdifyEdify
Edify
 
.NET Core, ASP.NET Core Course, Session 2
.NET Core, ASP.NET Core Course, Session 2.NET Core, ASP.NET Core Course, Session 2
.NET Core, ASP.NET Core Course, Session 2
 
.NET framework vs .net core 3.1 commons & differences
 .NET framework vs .net core 3.1  commons & differences .NET framework vs .net core 3.1  commons & differences
.NET framework vs .net core 3.1 commons & differences
 
robot framework1.pptx
robot framework1.pptxrobot framework1.pptx
robot framework1.pptx
 
Vhdl design flow
Vhdl design flowVhdl design flow
Vhdl design flow
 
Inptools Manual
Inptools ManualInptools Manual
Inptools Manual
 
MuleSoft Meetup Bangalore - March 6 2021
MuleSoft Meetup Bangalore - March 6 2021MuleSoft Meetup Bangalore - March 6 2021
MuleSoft Meetup Bangalore - March 6 2021
 
10071756.ppt
10071756.ppt10071756.ppt
10071756.ppt
 
Testing in Craft CMS
Testing in Craft CMSTesting in Craft CMS
Testing in Craft CMS
 
TDD for joomla extensions
TDD for joomla extensionsTDD for joomla extensions
TDD for joomla extensions
 

Recently uploaded

SHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationSHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationShrmpro
 
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburgmasabamasaba
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is insideshinachiaurasa2
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplatePresentation.STUDIO
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024Mind IT Systems
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionOnePlan Solutions
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Generic or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsGeneric or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsBert Jan Schrijver
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech studentsHimanshiGarg82
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesVictorSzoltysek
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 

Recently uploaded (20)

SHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationSHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions Presentation
 
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Generic or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsGeneric or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisions
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 

Perl on Netbeans - User Guide - v0.5

  • 1. Perl On NetBeans User Guide for version 0.5 (Beta)
  • 2. Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra 1 Contents Scope.............................................................................................................................................................3 Features of Beta 5 release ............................................................................................................................3 Pre-requisites................................................................................................................................................3 Installation ....................................................................................................................................................4 Features ........................................................................................................................................................4 1. The Editor..........................................................................................................................................4 1. Perl file support.............................................................................................................................4 2. Perl module support .....................................................................................................................5 3. Syntax highlighting........................................................................................................................5 4. Brace matching .............................................................................................................................5 5. Export code as HTML ....................................................................................................................6 6. Toggle comments..........................................................................................................................7 7. Theme support..............................................................................................................................7 2. Perl Project........................................................................................................................................7 1. Create new project .......................................................................................................................7 2. Create project with existing sources.............................................................................................8 3. Open Project .................................................................................................................................9 4. Add new file to project .................................................................................................................9 5. Add existing file to project..........................................................................................................10 6. Project Copy/Move/Delete operations.......................................................................................10 7. Support for Perl-Dancer2 project ...............................................................................................11 3. Check Files for Syntax Errors...........................................................................................................12 4. Code execution ...............................................................................................................................13 1. Execute files ................................................................................................................................13 2. Code execution with command line arguments.........................................................................13 5. Source Code formatting..................................................................................................................15 6. Source code analysis.......................................................................................................................16 7. Integrated PerlDOC support ...........................................................................................................17 8. Options Panel..................................................................................................................................18 1. Templates....................................................................................................................................18 2. General........................................................................................................................................18
  • 3. Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra 2 3. Perl::Critic....................................................................................................................................19 4. Perl::Tidy .....................................................................................................................................19 9. Integrated versioning system..........................................................................................................20 Feedback.....................................................................................................................................................22 Web Links....................................................................................................................................................22 Please note: Projects created with earlier versions (0.3 and below) of this software will not be recognized as valid projects. To import all projects previously created with this software, please create a “Project With Existing Sources” and import the project.
  • 4. Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra 3 Scope “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 5 release 1. Perl Editor 1. Perl file support 2. Perl module support 3. Syntax highlighting 4. Brace matching 5. Export code as HTML 6. Toggle comments 7. Theme support 8. Keyword assistance 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 6. Project Copy/Move/Delete operations 7. Support for Perl-Dancer2 projects (Incubating) 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) Pre-requisites This IDE requires the following to be installed on your system for the IDE to work properly: 1. NetBeans 7.4 or greater 2. Active-Perl v5.16 (Dancer2, Perl::Critic and Perl-Doc installed with your existing Perl installation) 3. Java 7 or greater
  • 5. Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra 4 Installation The installation of “Perl On NetBeans” can be summarized in the following steps: 1. Install NetBeans 2. Download and install the plugin from plugin central or go to Tools -> Plugins from your NetBeans installation Features The IDE currently just has the following features. 1. The Editor 1. Perl file support Any Perl file can be opened in the editor and all available features would be available. Figure 1 - A Perl (*.pl) file in the editor
  • 6. Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra 5 2. Perl module support Any Perl module file can be opened in the editor and all available features would be available. Figure 2 - A Perl module (*.pm) file in the editor 3. 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. Figure 3 - Syntax highlighting options from the Options panel 4. 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.
  • 7. Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra 6 Figure 4 - Brace matching in action 5. 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. Figure 5 - The toolbar option to export code as HTML
  • 8. Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra 7 6. Toggle comments Select any block of the code and press Ctrl + / to comment or un-comment the block or the following toolbar option to comment/un-comment selected blocks of code. Figure 6 - Menu option to comment selected block 7. Theme support Perl files will be displayed in any theme that you select for your IDE. Figure 7 - Theme support for Perl files 2. Perl Project A Perl project can be defined as a collection of a set of Perl files that can be logically grouped together. The basic operations on a Perl Project have been outlined below. 1. 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:
  • 9. Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra 8 Figure 8 : Creating New PERL Project 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. 2. 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. Figure 9 - Creating a project with exiting sources
  • 10. Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra 9 Figure 10 - Selecting the files for the project 3. 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. Figure 11 : Opening an existing PERL Project 4. 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.
  • 11. Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra 10 Figure 12 : Adding a new PERL file to project 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. 5. Add existing file to project 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. Figure 13 : Toolbar icon to add existing file to a project 6. Project Copy/Move/Delete operations The new version enables project level operations to copy/move/delete projects. This is an adaptation of the native project level operations on the Netbeans platform.
  • 12. Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra 11 Figure 14 - Project level operations 7. Support for Perl-Dancer2 project Before creating a Dancer project, the Dancer binaries need to be linked to the IDE. This needs to be done from the Options -> Perl On Netbeans -> General tab. To create a Dancer project, please ensue that you have the proper modules installed. And select New Project -> Perl Dancer Project Figure 15 - Perl Dancer Project The module is used to create a template application and then you can open bin/app.psgi and run it Figure 16 - Dancer main file Running any other file within a “Perl Dancer” project will give the following message.
  • 13. Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra 12 Figure 17 - Running a non-app file in a Dancer2 project Running the bin/app.psgi file creates an instance of the internal webserver and launches the default page. Figure 18 - Application in action From here you can use your experience to tweak the application as you want. Note: Please remember to shut-down the program before you want to start it again. Else the port would be in-use and the listener cannot be installed on the default port. 3. 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 “Run -> Compile File” button as shown below. This operation can be accessed using the “F9 key”. This checking happens based on the version of the Perl compiler that is currently installed on your system.
  • 14. Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra 13 Figure 19 : Syntax checking results 4. Code execution 1. Execute files This feature enables you to execute the file that is currently selected in the editor. To execute any specific select it in the editor and click on the “Execute” button on the toolbar as shown below. This execution happens based on the version of the Perl compiler that is currently installed on your system or selected from the options panel (described below). Figure 20 : Toolbar icon to execute selected PERL file 2. Code execution with command line arguments The latest release allows one to supply command-line argument(s). To execute a file with command line options, select the file in the editor and click the “Execute (with command line options)” button on the toolbar as shown below. On using this feature, a dialog box pops up, in turn facilitating the input of command-line parameters to be used in one’s program.
  • 15. Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra 14 Figure 21 : Toolbar icon to execute selected PERL file with command line arguments Figure 22 : Providing the command line arguments Subsequent Execution of the script
  • 16. Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra 15 Figure 23 : Results of execution with the command line arguments 5. Source Code formatting This feature enables you to perform source re-formatting as per Perl::Tidy. To perform analysis, select the file in the editor and click on the code formatter button on the toolbar as shown below. This will run the source code formatter against the selected source. Figure 24 : Toolbar icon to format selected PERL file Figure 25 : Code formatting (Before)
  • 17. Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra 16 Figure 26 : Code Formatting (After) 6. Source code analysis This feature enables you to perform source analysis as per Perl::Critic. To perform analysis, select the file in the editor and click on the code analyzer button on the toolbar as shown below. This will run the source code analyzer against the selected source. You’ll need Perl::Critic installed. Figure 27 : Toolbar icon to analyze source code of selected PERL file
  • 18. Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra 17 The output of the analysis will be provided in the Output window, as shown in the screenshot below: Figure 28 : Source code analysis results 7. Integrated PerlDOC support PerlDOC support has been also made available. If you want more information about any keyword, just select it in your editor and press on the “PerlDOC” button, and it will display the documentation in the output window. Similarly, if you just press the button, a pop-up window will ask you for the help topic and display it in the output window. You’ll need perl-doc installed for this. Figure 29 - Toolbar icon to display documentation
  • 19. Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra 18 8. Options Panel The Options panel contains a section called “Perl OnNetBeans” for our usage. This tab contains 3 sub-tabs that are utilized for various options. Also template support has been added for programming efficiency. 1. Templates You can specify any code template that you use regularly as a shortcut here. For example “p” can translate to “print”. So, if you add a template here, and then go to your editor with a Perl file open, type “p” and press “tab”, and voila, this would get translated in the editor as “print”. You can add as many templates as you want. Figure 30 : Code template configuration panel 2. General This tab contains the option to over-ride the default PERL installed on your machine. Let’s say that you have PERL 5.14 installed on your machine as the default but you want to use PERL 5.16 available at a non-default location, you can point the perl.exe binary using this tab and your program will be operated on by the executable specified here. If you do not specify anything here, the default PERL will be used. You can also specify any custom library file location here. These locations would be used as an addition to your @INC in the script. Also, the Dancer2 executables need to be pointed to at this location. The Dancer2 Path should be the folder where the Dancer2 and Plackup scripts are installed. This is not required to be populated if Dancer2 is installed with the default Perl installation at the default location.
  • 20. Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra 19 Figure 31 : PERL binary configuration panel 3. Perl::Critic This tab can be used to customize the code analysis options. For a complete meaning of the options here, please refer to the URL http://linux.die.net/man/1/perlcritic. Figure 32 : PERL::Critic (Code Analyzer) configuration panel 4. Perl::Tidy This tab can be used to customize the code formatting options. For a complete meaning of the options here, please refer to the URL http://perltidy.sourceforge.net/perltidy.html.
  • 21. Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra 20 Figure 33 : PERL::Tidy (Code Formatting) configuration panel We encountered a feature of “Export to HTML” and it can be configured from this panel. You can specify the output folder of the generated HTML (project folder by default), specify if you require a “Table Of Contents”, specify any CSS file, and also FRAME and PRE tags in the output HTML. 9. Integrated versioning system The new version also includes integrated support for major code versioning systems including Subversion, Git and Mercurial. The appropriate context menu options are displayed based on whether the code is connected with a SVN/Git/Hg repository.
  • 22. Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra 21 Figure 34 : A Git repo Project Figure 35 : A SVN repo Project Figure 36 : A Subversion file diff
  • 23. Perl On NetBeans – 0.5 Beta – User Guide | © Sudeep Hazra 22 Feedback Since this is a community driven initiative, we would request everyone to log-on to the Facebook space for any comments/suggestions or follow us on Twitter for staying up-to-date with the latest developments. Also for any issues, please do log a ticket with Bitbucket on the project space as mentioned in the “Web Links” section below. Web Links 1. Facebook page - http://www.facebook.com/PerlOnNetBeans 2. Twitter - @perlonnetbeans 3. Issue Tracker – https://bitbucket.org/sudeephazra/perlonnetbeans/issues?status=new&status=open 4. NetBeans download - https://netbeans.org/downloads/ 5. Active-Perl download - http://www.activestate.com/activeperl/downloads 6. Java download - http://www.oracle.com/technetwork/java/javase/downloads/index.html