≡ Menu


Perl Array Reference and Dereference Tutorial With Practical Examples

In this article let us review how to reference and dereference Perl array with examples. Reference is nothing but the location ( address ) of another variable. The references can be of array, or hash, or a snippet of Perl code. References makes the Perl code to run faster. Perl Reference To Array Normally, we [...]


8 Awesome Perl Command Line Arguments You Should Know

Command line options in Perl could be useful to do smaller tasks effectively. In this article, let us review how to use Perl command line options to do the following tasks: Edit file content Handle line separator Check syntax errors Load modules Perform looping Execute perl code Set input line separator Split the input line [...]


Perl eval built-in function is very powerful. In this article let us review how to use regex in eval, trapping errors using eval, create dynamic code using eval, insert a code from a file/sub-routine using eval etc., The general form of perl eval expects a expression or a block of code as an argument. 1. [...]


Perl Debugger Tutorial: 10 Easy Steps to Debug Perl Program

Earlier we discussed the basics of how to write and execute a perl program using Perl Hello World Example. In this article, Let us review how to debug a perl program / script using Perl debugger, which is similar to the gdb tool for debugging C code. To debug a perl program, invoke the perl [...]


If you are a Linux sysadmin who writes occasional perl code (or) a developer who wants to learn perl program language, these 20 basic perl programming tips and tricks explained in this article will give you a jumpstart. 1. List all Installed Perl Modules from Unix Command Line Get a list of all installed perl [...]


Book Review: Perl Best Practices by Damian Conway

This is an essential book for both developers and sysadmins who write Perl code to get their job done. Perl is very powerful language and there are several ways you can code in Perl to get the same results. If you are not careful, you may end-up writing Perl code that is very hard to [...]

{ 1 comment }

Question: I would like to understand the basics of how to write and execute Perl program on Linux OS. Can you explain it with a simple example? Answer: In this article, let us review very quickly how to write a basic Hello World Perl program and execute *.pl program on Linux or Unix OS. 1. [...]


Make Vim as Your Perl IDE Using perl-support.vim Plugin

This is a guest post written by SathiyaMoorthy. This article is part of the ongoing Vi / Vim Tips and Tricks Series. As a programmer, you may do lot of repetitive tasks while coding such as: Adding file header Adding function/frame comment Including default code snippet Performing syntax check Reading documentation about a function Converting [...]