Perl grep Function

Aug 25, 2009

Perl grep function is used to filter the elements of a list and return a sublist with the elements that match a certain criteria. Among the snippet code examples provided I mention:

  • Get the number of the array elements that match a pattern
  • Looking for a string that contains metacharacters (special characters that have a specific meaning for regular expression engine; if you want to tell Perl that these must be considered as normal characters, you must precede them by \ escaped character)
  • Get the even or odd elements from a list
  • Extract the list elements that occur a given number of times


Perl pop Function

Aug 20, 2009

Perl pop function is one of the array built-in functions. It is used to remove and return the last element of an array. You’ll find examples of how to use it with an array thought as a stack, queue or a circular list.



Perl unshift Function

Aug 18, 2009

Perl unshift function is an array built-in function. You can use it to insert a list in front of an array – it returns the total number of the array elements. See a few examples about how you can use it to treat an array like a stack, queue or a circular list.



Perl shift Function

Aug 12, 2009

Perl shift function is an array built-in function. It removes and returns the first element of an array, shortening the size of the array with 1. You’ll find a few examples about how to use it:

  • within the body of a subroutine
  • in connection with an array thought as a stack, queue or circular list


Perl push Function

Aug 10, 2009

Perl push function is a built-in function for arrays. It is used to append a list to the right side of an array and it returns the total size of the array after appending.

Find some ways to implement it:

  • creating an array from a file
  • concatenating two arrays by alternating their elements
  • using arrays as stacks or queues and much more


Perl split Function

Jul 26, 2009

Perl split function allows you to split a string into an array or a list, by using a certain pattern. Want to find some ways to implement it? Try these:

  • read data from a csv file (a comma delimited text data file)
  • using split with different characters within the pattern (by defining a character class)
  • using split without parameters - in this case whitespaces (usually blank space, tab, carriage return, line feed and form feed) will be used
  • using split in a scalar context and much more


Perl join Function

Jul 19, 2009

Perl join Function is a built-in function for the arrays category. It is used to concatenate the elements of an array or a list by using a separator/delimiter. Take a look at some examples regarding:

  • how to change the join separator/delimiter
  • convert @ARGV to a string variable and much more


Perl undef Function

Jul 2, 2009

Perl undef function returns an undefined value freeing up the memory used by the variable arguments passed to it. A short free tutorial about how to use it with scalars, lists or arrays, hashes, subroutines or typeglobs.



Perl Functions by Category

Jul 1, 2009

See some of the built-in functions grouped by categories. Stay tuned for more.



Perl Functions in Aphabetical Order

Jun 30, 2009

Look at some of the most important built-in functions, in an alphabetical order.



Perl defined Function

Jun 23, 2009

Perl defined function is used to detect if a function or a variable is defined or not. A few snippet code examples are provided regarding the use of this function in connection with arrays, hashes and STDIN (standard input stream).



Perl Array Functions

Jun 10, 2009

The most important Perl built-in functions used to manipulate arrays or lists can be accessed from here.



Perl foreach Loop Statement

Jun 8, 2009

A short free tutorial about how to use one of the most important looping statements in Perl. Examples are provided about how to use foreach with lists, arrays, hashes, the special scalar variable $_, STDIN, the range operator .., continue, last, next, redo and much more.



Perl for Loop Statement

Jun 3, 2009

See how to use Perl for - A C-style looping statement. A lot of examples are provided in order for you to see how you can implement it in the Perl language.



Perl do-until Statement

May 30, 2009

This statement allows you to iterate through a looping block but checks if a condition is met after the execution of the block. A few snippet code examples will illustrate you how to use it.



Perl do-while Statement

May 26, 2009

This iteration statement is similar with the while statement but it is based on checking the test condition after the execution of the block. A few examples are shown to let you know how it works.



Perl until Statement

May 23, 2009

Perl until Statement is the opposite of while loop statement, it repeatedly executes a block of code until a test condition becomes true.

I’ll focus on using it with arrays and hashes, in connection with next, last, redo and continue controls. Among other things mentioned above: how can you generate an infinite loop or how to use until with the diamond operator <>. And of course the short form of the until statement (using it as a modifier).



Perl while Statement

May 19, 2009

This is one of the more basic loop statements available in Perl language. It checks a test condition before executing the block of code and executes the block if and only if the condition is true. I’ll show you how you can use it as a modifier or how to implement it in certain situations:

  • control the flow of a while loop with next, last, redo
  • emulate a for statement using while
  • using my declaration in the conditional expression and much more


Perl switch Statement

May 8, 2009

Perl switch statement is a real alternative to if-elsif-else pattern when you need to write a multiway branch statement. You can either:

  • emulate a switch statement if you work in an earlier version of Perl (prior to 5.8.x)
  • use the Switch module if your version of Perl is 5.8.x or higher
  • use the given/when (instead of switch/case) statement if you work in Perl 5.10 version or higher
You can use the break keyword to leave or finish the execution of the block either you use Perl given block or Perl Switch module. Look at the provided examples to see the advantages of using this statement.


Perl unless Statement

Apr 24, 2009

Perl unless statement is the negative or opposite of the if statement. It always executes a block of code if the condition is false. In some circumstances the code is more legible if you use unless. I’ll show you a few examples where unless is used with else or elsif clauses as well as a modifier (the short form).



Perl if Statement

Apr 15, 2009

The if statement is the most used of the conditional statements. It executes a block of code only if an expression evaluated in a boolean context is found true. I’ll show you some snippet codes where if is used associated with else and elsif clauses and the main syntax forms of this statement.



Perl Statements

Apr 7, 2009

Perl statements are one of the most important topics of a programming language. The statements are commands recognized by the Perl interpreter and executed. Every statement ends in a semicolon (;) and can be written across one or more lines.

In this post I describe the blocks (including anonymous blocks), the compound statements as well as the control statements: the conditional and the looping statements. You’ll find some information about the loop controls – next, last and redo, the continue statement and statements used as modifiers. A lot of examples are provided to illustrate the topics.



A Perl Script

Mar 18, 2009

Here, I discuss the topics related to a Perl script and I give you an illustrative example, for educational purposes. From comments, declarations and statements to data-types, operators, built-in functions and subroutines, the most important topics are briefly reviewed.

I’ll illustrate how you can declare and use a module in a Perl script too. I exemplify by using the DateTime module and printing the current date (month, day and year).



Perl length Function

Mar 4, 2009

Perl length function is for strings – it returns the number of characters of the string. This function expects a scalar as an argument and for this reason it can’t be used directly to find out the number of elements of an array or hash (associative array). I mention below a few ways to use it in your applications:

  • How to find the length of a string in bytes – useful if you have some Unicode expression
  • Get the shortest and the longest string line read from STDIN
  • How to use it with arrays and the sort function – sort the words of a string in a descending length order
See the snippet code!


Perl substr Function

Mar 1, 2009

Perl substr function belongs to the array category of built-in functions. It is very useful to retrieve sub-strings of a given string. It accepts as arguments: the offset from where to extract the substring, the length of the substring to extract and eventually a string to replace the substring you are looking for.

You’ll find quite a lot of samples that show you how to manipulate strings, particularly how to get the column fields from a flat file database. If your flat file is big, because of possible memory issues, it is wiser to read the file one record at a time and not the entire file at once.



Perl lcfirst Function

Feb 27, 2009

It is quite a simple string function. It converts the first character of a string in lowercase and returns the new string. To manipulate strings with this function you sometimes need to use some array built-in functions such as split and join. See the snippet codes available through this post.



Perl uc Function

Feb 24, 2009

Perl uc function returns an uppercase version of a string expression, without altering the input string.

It is very useful to perform case insensitive some string comparisons. Have a look inside the code examples shown in the post to see how it works.



Perl lc Function

Feb 23, 2009

Perl lc function converts a string expression into its lowercase version. It returns back a new string without altering the input string.

I explore this topic by giving you a few sample codes to see how you can implement it. It is very convenient to use if you need to do some string comparisons in your script.



Perl rindex Function

Feb 20, 2009

This function is in some way similar with the index function but searches the string from right to left. The examples I chose illustrate some features of this topic.



Perl index Function

Feb 14, 2009

If you want to search for a substring within another string, this can be accomplished in a number of ways and Perl index function is one of them. Keep in mind that this function searches the string from left to right. I post some useful examples including:

  • How to find out all the occurrences of a substring in a string – the script will print the positions (indices) of the substring instances
  • How to remove trailing spaces in the index function context


Perl hex Function

Feb 11, 2009

Perl hex function is meant to convert a hexadecimal string expression in its decimal corresponding value. If you omit the argument, this function will use by default the special variable $_. To help you get most of it I provided several examples that cover the following topics:

  • Convert an integer into a hexadecimal one (the reverse of hex function; it also uses the chr function to convert a number into a character)
  • Cast a scalar string to hex
  • Encode and decode an URL – some special characters from an URL must be encoded because they could be misunderstood if they are found in an URL; to encode a character means to replace it by % sign followed by its two-digit hexadecimal code.


Perl chomp Function

Jan 29, 2009

Perl chomp function removes any trailing string that corresponds to the current value of $/ (the input records separator) – it is often used to remove the newline (the enter or return key) at the end of the input record.

I provide a few examples about how to use all the three syntax forms, as well as using chomp with arrays and hashes.

A special attention is given to the difference between chomp and chop and the case when you need to delete all the newlines (\n) found at the end of a string (the paragraph mode).



Perl chop Function

Jan 23, 2009

Perl chop is used to remove the last character from a string variable or the last character of all the entries of a list, array or hash. In the case of hashes, it removes only the last character of the values, while the keys remain unchanged.

In the case of a list, you must pay attention to the elements that are references, if you have a complicated structure (like an array of arrays, an array of hashes, a hash of arrays, a hash of hashes or a mixed structure), you must follow all the references in a recursive way in order to chop all the elements.

I’ll illustrate the using of this function with a few examples that point out how you can implement it in your scripts.



Built-in Perl Functions

Jan 22, 2009

Perl functions are one of the most important topics in the Perl language and you can choose between built-in functions, user-defined subroutines or a myriad of other functions available through the Perl modules at CPAN.

This post is about the common built-in functions that are included in the core bundle of the Perl distribution. Well, these functions could differ a bit from a Perl version to another, so pay attention to your installed version of Perl when you use their new specific features.



Perl String Functions

Jan 21, 2009

There are a lot of built-in functions for strings in Perl, the description of some of the most frequently used is available from this post: chop, chomp, hex, index, lc, lcfirst, length, rindex, substr, uc. Enjoy it!



Mastering Regular Expressions, Third Edition

Jan 20, 2009

A quick review of Jeffrey Friedl’s "Mastering Regular Expression", Third Edition book. You can become an expert in automating text processing by consulting this book, which needs to remain on your desk as a quick reference guide. From regular expression introduction to mastering regex with Perl, I stepped through the most important topics treated in this book.



Perl Hashes

Jan 6, 2009

In this post you’ll find some ways of manipulating hashes (associative arrays) – the third native built-in data type of Perl language. I remind you that the elements of a hash consist of pairs ($key, $value) where $value is a value associated with the respective $key.

The shown examples help you understand Perl hashes in an easy way. Among them I enumerate:

  • copy a hash
  • create or initialize a hash
  • empty or clear the contents into a hash
  • how to extract slices from a hash
  • find out if a hash variable contains references
  • get the size of a hash
  • insert or add content into a hash dynamically
  • loop or iterate through a hash
  • print a hash, remove a key from a hash
  • sort or order a hash (in an ascending or descending order)
  • reverse a hash (in this example I used the Data::Dumper module to see the content of a hash)
  • and much more.

Please note that accessing the elements of a hash through a reference could be less legible, so it is better to use the arrow operator (->) that takes a reference on its left side and a hash key (in curly braces or curly brackets) on its right side (something like $hashRef->{$key}).



Mastering Perl

Dec 29, 2008

A quick review of brian d foy’s "Mastering Perl" book. In this review I point out the chances you have to become a master of the computer language Perl if you use it. Simple enough to initiate a beginner, yet complex enough to tell you what you need to know – that’s what this book is all about.



Perl Cookbook

Dec 28, 2008

A quick review of Tom Christiansen’s "Perl Cookbook", Second Edition book. This book is a collection of problems, solutions and practical examples that will be indispensable to anyone who is programming in Perl. I reviewed every chapter shortly, pointing out what you’ll find there.



Teach Yourself Perl

Dec 20, 2008

A quick review of Clinton Pierce’ "Teach Yourself Perl in 24 Hours" Third Edition book. I reviewed all the three parts of the book:

  • Perl Fundamentals
  • Advanced Features
  • Applying Perl
The book is organized in a series of step-by-step lessons. I moved through all the lessons letting you know what I consider should capture your attention and interest. I think this book will provide you with an excellent working introduction and overview of Perl, plus additional resources to continue your learning.


Perl Array Length

Dec 16, 2008

This post is meant to show you how you can calculate the length in bytes of a Perl array, i.e. the memory usage of a Perl variable.

Perl uses a contiguous chunk of memory to allocate an array and memory issues could happen only in the case the array is using a large amount of data.

Generally, Perl deallocates the memory used by Perl arrays, by instance if your array variable is of my() type, Perl will try to free its storage when it goes out of scope.

I describe a way to find this length by using the length function for strings and use bytes pragma. Another way to consider is by using Devel::Size module that determines the amount of the memory usage of any Perl variable, including multidimensional arrays.

And as always, I illustrate this by a few sample code examples.



Perl Array Size

Dec 10, 2008

By the size of a Perl array I mean the number of elements of a Perl array. I discuss both the case of one dimensional array (with no references) and the case of multidimensional arrays.

I’ll give you a few samples of code too, among them is how to count the size of an array or to print out all the items of a multi-dimensional Perl array, each subarray on a separate line (for double and third dimensional arrays).

If you want to display the elements of an array that has references, if you don’t dereference the references, you’ll get the type of references and theirs memory addresses.



Perl Arrays

Dec 4, 2008

A simple Perl array definition is as follows: it represents the second native built-in data type of the Perl language and contains ordered lists of scalars.

You have the opportunity to see a few ways about how you can deal with or manipulate the arrays in Perl:

  • append elements to a Perl array
  • assign a list to a Perl array
  • concatenate Perl arrays
  • modify Perl array elements
  • sort Perl arrays (numerically or in an alphabetical order), and much more.


Perl Lists

Nov 14, 2008

I point out the difference between a list and an array in Perl and I give you some examples about how to deal with lists in Perl. I show you how to define a list using qw (quote word) operator or .. (range operator).

Finally, I speak about the List::Util module available at CPAN (where you can search for it) that contains a useful collection of subroutines that handles lists.



Mastering Algorithms with Perl

Oct 29, 2008

A quick review of "Mastering Algorithms with Perl" book. The topics described include: binary search algorithm, simple and advanced data structures, Perl graphs, sorting methods, manipulate sets and matrices, string matching, geometric algorithms, number theory, cryptography, probability, statistics and numerical analysis.



Mastering Perl for Bioinformatics

Oct 21, 2008

A quick review of James Tisdall’s "Mastering Perl for Bioinformatics" book. In this book you’ll find a lot of Perl language topics presented in a biology context. Every chapter is summarized and reviewed so you can see what you should expect to find there.



Beginning Perl for Bioinformatics

Oct 12, 2008

A quick review of James Tisdall’s "Beginning Perl for Bioinformatics" book. This book was designed for biologists, but can be used for other beginners in programming too. Very useful for programmers with little or no programming experience.

Each chapter of the book is briefly presented in a try to highlight the most important concepts of the book. However, some of the chapters of the book contain specific biological topics, especially designated for biologists.



Perl Variables

Oct 9, 2008

Please remember that the name of a Perl variable contains alphabet characters, numbers and the underscore (_) character. The underscore character hasn’t got a special meaning; here it’s just a part of an id (identifier), in our case the variable name.

According to the three types of built-in data types: scalars, arrays and hashes, there are three types of variables:

  • scalar variables– starting with a $ (dollar sign)
  • array variables – starting with a @ sign
  • hash variables – starting with the % sign.
There are user defined variables and predefined variables (like $_ and @_). Perl is a very straightforward language so you don’t need to declare or allocate the variables.

Besides variables, in a Perl script you can declare constants too, by using constant pragma. When you use a constant in an expression, Perl replaces it with its value at compile time, optimizing the expression.

More about variables and a few code examples to illustrate how to use them will help you to understand this topic better.



Perl Operators

Oct 2, 2008

Operators are one of the most important topics in a programming language. Perl doesn’t make any exception and in this post I tried to group the operators used in Perl by categories and context:

  • numerical Perl operators
    • arithmetic (+ addition, - subtraction, - negation, * multiplication, / division, ** exponentiation, % modulus, ++ autoincrement, -- autodecrement)
    • relational (< less than, <= less than or equal to, > greater than, >= greater than or equal to, == equal, != not equal to, <=> numeric comparisons)
    • logical (! negation, not negation, and and, && and, or or, || or, xor exclusive or, ? conditional operator)
    • bitwise (<< shift left, >> shift right, & and, | or, ^ exclusive or, ~ not)
    • other (, comma, => comma, .. range operator)
    • assignment (= assignment, += addition, -= subtraction, *= multiplication, /= division, **= exponentiation, %= modulus, &&= logical and, ||= logical or, <<= bitwise shift left, >>= bitwise shift right, &= bitwise and, |= bitwise or, ^= bitwise exclusive or)
  • string Perl operators
    • relational (lt less than, le less than or equal to, gt greater than, ge greater than or equal to, eq equality, ne not equal to, cmp comparison)
    • logical (! not, not not, && and, and and, || or, or or, xor exclusive or, ? conditional operator)
    • other (, comma, => comma, - negation, . concatenation, .. range operator, x repetition)
    • assignment (= assignment, &&= logical and, ||= logical or, .= concatenation, x= repetition)
  • special Perl operators (\ reference, -> dereference, =~ pattern binding, !~ pattern binding not).
You can use:
  • the relational operators either to compare two numbers or two strings
  • the logical operators to control the program flow; they are based on boolean algebra
  • the bitwise operators that work on the binary representation of data
  • the assignment operators to perform some type of numeric or string operation and then to assign the value to the existing variable
Please note that the equal operator can be prone-error if you don’t use the appropriate symbol for numbers (=) or strings (eq), especially if you perform certain comparisons.

In your conditional tests you can use either a single operator or a combination of two or more operators.

I'll exemplify with a few lines of code how to use each operator. More in the post.



How to Install Perl

Sep 25, 2008

A few words about how to check from a command line prompter if you have Perl installed on your computer and what version it is. If Perl is not installed, I briefly tell you where you can find the free Perl bundle distribution and how to install it in both Linux (Unix) and Windows operating systems.



Perl Data Types

Sep 23, 2008

This post is about the three built-in data types in Perl: scalars, arrays and hashes. A scalar can be a string, a number or a reference to a certain object and we have scalar literals (numbers or strings) and scalar variables. The arrays and hashes contain a number of scalars and all these data types make from Perl a powerful tool for text manipulation.



Running Perl

Sep 15, 2008

There are several ways to run Perl, generally it depends on the platform on which Perl is installed. My examples include how to run Perl from a cmd window, save it in a script file, upload it to a web site and next, running it from your favorite browser.



Perl Basics

Sep 2, 2008

With this post I intend to begin a summary tutorial concerning the basic topics of Perl language including: installing and running Perl, debugging and testing, data-types, variables, operators, pattern matching and regular expressions, manipulating scalars, arrays and hashes, built-in functions, subroutines, files and directories, database management and much more.

In this tutorial I’ll intend to provide a lot of examples that you can exercise and change their code in order to master the included topics.



Enginsite Perl Editor

Aug 29, 2008

On a Windows platform Enginesite Perl Editor (Lite or Professional versions) represents a complete integrated development environment (IDE) for creating, testing and debugging Perl scripts. I reviewed both versions and I pointed out the most important features including: navigating through Perl functions, using CGI scripts, editing facilities and much more.



Perl DBD

Aug 27, 2008

In this post I show you how you can connect from a Perl script, using the database-independent interface (DBI) and a Perl DBD driver, to a specific database. I’ll exemplify creating a script on a Windows machine, that accesses a Paradox table using a DBD::ODBC driver.

The ODBC connection is managed by using a Windows DSN (Data Source Name). I’ll show you in details how to make the ODBC connection on Windows, how to install Perl DBD::ODBC module using PPM (Perl Package Manager) and a few queries to a specific Paradox table.



DBI Perl Module

Aug 17, 2008

I’ll show you the architecture of a DBI application, where DBI (database-independent interface) is a very powerful module that allows you to use SQL and mySQL queries available on most platforms. The connection to databases is made by using the appropriate DBD database driver.

I’ll explain how to download and install the Perl DBI module on a Windows system through the PPM (Perl Package Manager) application, included in ActivePerl under Windows, distribution available at ActiveState.com.



PDF Perl modules

Aug 15, 2008

In this post I examine a few opportunities available to you if you need to manage a PDF (portable document format) file from a Perl script. I have in mind the following modules available at CPAN:

  • PDF::Create (it allows you to create a simple PDF file)
  • PDF::API2 (to create and modify more sophisticated documents)
  • PDF::Reuse (produces PDF documents by reusing templates)
  • PDF::Extract (you need it if you want to extract PDF
  • sub-documents from a multi page PDF document).


Perl Database Programming

Aug 12, 2008

You’ll find a brief presentation of database programming here. From flat file databases to relational databases, hierarchical structures as XML files or miscellaneous types such as Excel or text files, I shortly describe these structures and I tell you what is widely considered the most appropriate way to manage databases in Perl: using DBI and DBD modules. In this way you can connect in the same script to multiple databases from different users, regardless the database system you use.



Perl Best Practices

Mar 27, 2008

A quick review of Damian Conway’s "Perl Best Practices" book. The main idea of this book is although there is more than one way of doing something in Perl, it is very important to choose the correct way to do this and take your time to look at some programmers you have confidence in.

The book is full of recipes about what to do and what not to do in order to write more accurate code.



Perl Tk Tutorial

Mar 25, 2008

This is about using Perl/Tk module that is a very helpful tool in the development of your GUI (Graphical User Interfaces) applications. I review and recommend two tutorials about using Tk module:

  • The first presents the main features of the Perl Tk module
  • The second is a mini application with menubars, frames, labels, buttons and other components


Image Magick Perl

Mar 20, 2008

In this post I focus particularly on the main features of the Image Magick Perl module that represents an interface to ImageMagick software. I present you some things you may want to consider when you use this module.



Internet Programming Perl

Mar 9, 2008

If you want to manage network communication, web or internet connections, I think that the Perl language is a very good choice, not only for the full support for using sockets but for the myriad of modules found at CPAN that will help you do the job.

You can develop any kind of service including email, ftp, telnet, news, POP, SMTP and so on.



Perl Telnet

Mar 5, 2008

If you need to use Telnet in order to establish a connection with another computer on the internet or local area network (LAN), a straightforward way is to use the Net::Telnet module. This module lets you create a telnet client able to make connections through a TCP port to a server.

See some of its features in this post.



Perl Plotting

Mar 2, 2008

If you want to develop graphics applications in Perl, there are at least 2 opportunities:

  • use an available module at CPAN (like Chart::Graph module with the gnuplot drawing charts variant)
  • use some other plotting programs called externally from a Perl script (like Gnuplot). In this last case you need to use a Perl interface module to access the external application.


DzSoft Perl Editor

Feb 25, 2008

This is a review of DzSoft Perl Editor – a universal Perl development tool for editing and debugging Perl CGI scripts. See some of the significant features of this editor.



Learning Perl Fourth Edition

Feb 12, 2008

A quick review of the "Learning Perl" Fourth Edition book. A very valuable resource for both beginners and more experimented programmers.



Tavrida Perl Editor

Feb 1, 2008

It is meant to use in Perl windows script applications. It has a visual interface like Delphi C++ Builder application interface. Some of its most important features are reviewed here. You can install and configure it on your Windows system or uninstall it, if you don’t want to use it more.



Perl Books

Jan 23, 2008

There are a great number of Perl books, ebooks and tutorials available on the net, you can try a search at Amazon.com or other sources. In this post I’ll go through the huge variety of available options in choosing the appropriate book.



Perl Zip

Jan 21, 2008

In Perl you can use the zip compress format by using a variety of modules available at CPAN. The Archive::Zip and Chilkat are two of the most important modules to compress/uncompress (decompress) your data.

A few sample features of Archive::Zip module:

  • extract files from a zip
  • read/modify/write a zip
  • add, extract and update a directory tree
  • test file integrity of a zip file
A few sample features of Chilkat module:
  • directory tree zip
  • discard path information and append a path prefix when zipping
  • create/decompress the .gz file format
  • read/write Zips with WinZip-compatible encryption
  • use a filename pattern to unzip
More in the post.


Perl Modules

Jan 15, 2008

A module is a piece of code written by others, code that you can use and reuse in your Perl scripts in order to save a lot of time. Please note that the module you want to use must be compatible with your installed version of Perl, so you must read the documentation attached to it first.

You can write your own module or integrate another one already available (to locate modules that are not distributed with Perl, you can browse at CPAN or search Google or other search engines). See some options you should have in view in working with modules.



Perl Editors

Jan 10, 2008

The Perl scripts being just plain text files, practically you can use any plain editor to create them. However, because very often you must indent some blocks of code to make your script more legible, it’s a good idea to use a programmer’s text editor.

On every platform there are available a lot of editors so you can choose the one that is the most appropriate for you. See in the post some suggestions regarding the platform available editors.



return from blog to Home page



Would you like to create your own website like this one?
Hit the Alarm Clock!

Site Build It!