Array ( [category_name] => perl-programming [error] => [m] => [p] => 0 [post_parent] => [subpost] => [subpost_id] => [attachment] => [attachment_id] => 0 [name] => [static] => [pagename] => [page_id] => 0 [second] => [minute] => [hour] => [day] => 0 [monthnum] => 0 [year] => 0 [w] => 0 [tag] => [cat] => 1403 [tag_id] => [author] => [author_name] => [feed] => [tb] => [paged] => 1 [meta_key] => [meta_value] => [preview] => [s] => [sentence] => [title] => [fields] => [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => 1 [update_post_term_cache] => 1 [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [post_type] => [posts_per_page] => 10 [nopaging] => [comments_per_page] => 50 [no_found_rows] => [order] => DESC [orderby] => date )
Perl Programming

Learn to use Regex Editor Tool in Perl Programming

After installing the Padre IDE, and using it to write and run Perl scripts, we will investigate the Regex Editor tool, which is built in the Padre software, to write and test regular expression patterns. That will be the subject of today’s article. Another light article to read, so have a nice reading. Starting the

Perl Programming

Learn to Install and Use Padre IDE in Perl Programming

The Perl Application Development and Refactoring Environment (Padre) is a GUI IDE for Perl with the rich code editor and friendly interface. Padre is a free open source software, under the umbrella of the GPL. It is multi-platform software that can be installed on Windows, Linux, and Mac OS. In this article, we are going

Perl Programming

Learn about Managing Processes in Perl Programming

From your Perl code, you can manage programs running on your machine, including the Perl program itself. In this article, we will learn how to control processes from Perl. Have a nice reading. Executing System Commands There are several ways to execute a system command from Perl code. Let’s see them together. Using Backticks [crayon-592aa78c8222a077089957/]

Perl Programming

Learn about One Liners in Perl Programming

A One-Liner is a very short program that fits within one-line, and could do a job, usually done by longer programs. In this context, Perl is considered one of the richest programming languages supporting one-line programs. This topic will be the focus of our today’s article. Have a nice reading. The –e Option The –e

Perl Programming

Learn to Use grep Command in Perl Programming

How can we make Perl emulate the job of grep command-line tool in UNIX and Linux? To solve the problem, we need first to know what the grep command does. In its basic use, grep can search a file, multiple files, or an entire directory for a pattern. If there is no match, nothing gets

Perl Programming

Learn about Pattern Matching using Regular Expressions in Perl

Using Single-Character Constructs In the last article, we have learned how to use the simple (literal) patterns. A pattern like /Ahmed/ will match only strings that contain the name “Ahmed”. A modified version of it /Ahmed/i  will match any form of “ahmed” ignoring the letters case. The pattern /^172/ will match any string starting with

Perl Programming

Learn to use Simple Patterns in Perl Programming

If you remember, I told you in the beginning of this series that Perl stands for Practical Extraction and Reporting Language. Okay, let’s understand what we mean with extraction and reporting in the name. Of course, it is data! The capability to extract specific portions of data based on certain criteria (patterns) and to present

Perl Programming

Learn about Hashes in Perl Programming

Perl supports three main types of variables: Scalars, Arrays, and Hashes. We have already talked about the first two types: Scalars, and Arrays. Now, it is time to talk about the third type: Hashes. An interesting topic to read; so, enjoy! What are Hashes? In its simplest definition: a hash is a collection of key-value

Perl Programming

Learn more about Input and Output Operations in Perl Programming

Writing to File Example We will be continuing what we started in the previous article. In this example, we are going to write a script that repeatedly accepts lines of input from the user, and writes them one after another to a file. [crayon-592aa78c86b89715231191/] When executed, the script should behave as follows: The open function opens

Perl Programming

Learn Input and Output Operations in Perl Programming

Without being able to read dynamic inputs from the user, or to provide the processing results as output either to the screen or to a file, then why… what’s all this for? Reading from Standard Input We have already seen how to use the <stdin> operator to prompt the user for a line of input.