How To Install perl-Text-ParseWords on AlmaLinux 8

In this tutorial we learn how to install perl-Text-ParseWords in AlmaLinux 8. perl-Text-ParseWords is Parse text into an array of tokens or array of arrays

Introduction

In this tutorial we learn how to install perl-Text-ParseWords on AlmaLinux 8.

What is perl-Text-ParseWords

The nested_quotewords() and quotewords() functions accept a delimiter (which can be a regular expression) and a list of lines and then breaks those lines up into a list of words ignoring delimiters that appear inside quotes. quotewords() returns all of the tokens in a single long list, while nested_quotewords() returns a list of token lists corresponding to the elements of @lines. parse_line() does tokenizing on a single string. The quotewords() functions simply call &parse_line(), so if you’re only splitting one line you can call parse_line() directly and save a function call.

We can use yum or dnf to install perl-Text-ParseWords on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Text-ParseWords.

Install perl-Text-ParseWords on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install perl-Text-ParseWords using dnf by running the following command:

sudo dnf -y install perl-Text-ParseWords

Install perl-Text-ParseWords on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install perl-Text-ParseWords using yum by running the following command:

sudo yum -y install perl-Text-ParseWords

How To Uninstall perl-Text-ParseWords on AlmaLinux 8

To uninstall only the perl-Text-ParseWords package we can use the following command:

sudo dnf remove perl-Text-ParseWords

References

Summary

In this tutorial we learn how to install perl-Text-ParseWords on AlmaLinux 8 using yum and dnf.