Explore information related to perl

Install Perl on Ubuntu 20.04 - Step by step guide ?

This article covers how to install Perl on Ubuntu 20.04. In fact, Perl is a general-purpose, high-level, interpreted programming language. It is the acronym of Practical Extraction and Reporting Language, initially, Perl was designed as a scripting language to make report processing easier.

How to install Perl in Ubuntu ?

1. Refresh the local package repository and upgrade all packages to a newer version:

$ sudo apt update && sudo apt upgrade -y

2. Once your system gets updated, use the following command to install Perl in your system:

$ sudo apt install perl

Restart Bluetooth in Ubuntu 20.04 - How to do it ?

This article covers methods to install, configure, enable and then restart the Bluetooth service in the Ubuntu system. From time to time when you are using Ubuntu Linux and you want to use your Bluetooth headset to watch Netflix or YouTube videos you may experience some problems with the Bluetooth connection on Linux.

How to fix the issue "Bluetooth isn't available" when you wake up the system ?

When you put your system to sleep, there are chances Bluetooth won’t be available when you wake it up. In order to make everything work fine as before in most cases you will need to restart the system.

In order to fix this issue, we need to launch the Terminal and check whether we have the 4.48 version of Bluez. You can easily do that with this command:

$ dpkg --status bluez | grep '^Version:'

When you see the results, use the following commands to update to the latest version:

$ sudo add-apt-repository ppa:bluetooth/bluez
$ sudo apt-get update

After these commands, you will be able to update the Buez using:

$ sudo apt upgrade

How to fix the issue "Bluetooth headset won't play in A2DP (High Fidelity)" ?

In order to fix this issue, you will need to make your system detect the right type of Bluetooth device by adding a simple configuration file.

1. First, let's check whether we have all the dependencies installed:

$ sudo apt install pulseaudio pulseaudio-utils pavucontrol pulseaudio-module-bluetooth

2. When we verify it, we need to create or edit this audio config file:

$ sudo gedit /etc/bluetooth/audio.conf

Then, Include the next lines:

This section contains general options

3. Finally, save the file and start the Bluetooth service again:

$ sudo service bluetooth restart

Top 5 Languages for Automation in Linux

This article covers software programming languages which are the top-rated languages being used by the quality assurance engineers for designing and developing the most efficient and reliable test automation software. Python, Java, C#, JavaScript and Ruby, all are well-acclaimed programming languages to deliver and support test automation for software applications developed in any of the platforms.

Automation testing is one of the booming demands of all organizations across the globe. Many quality assurance engineers face a key challenge in setting up an environment capable of most seamlessly testing the developed software against the documented test cases and requirements. Verifying and validating all the test case scenarios is a tedious task to perform thereby giving rise to the need for automation testing. Automation testing significantly enhances and improves the software testing processes.

Create and Run a Perl Script in Linux Mint - How to perform this task ?

This article covers how to create and execute a Perl script in Linux Mint 20. Moreover, if Perl is not installed on your system already, then we have even shared with you the method of installing it on your system and also ensuring if its interpreter exists there or not.

Perl is a programming language that can be used to perform tasks that would be difficult or cumbersome on the command line. Perl is included by default with most GNU/Linux distributions. 

PERL- Practical Extraction and Reporting Language (not an official acronym), is a stable and cross-platform language and was created by Larry Wall. 

Perl is an open source, general-purpose, interpreted language. Programs written in Perl are called Perl scripts. 

Perl supports both Procedural language and Object Oriented language and has powerful built-in support for text processing and have a collection of third-party modules. Perl language is mainly used for Web Applications, System Administration, Batch Processing, Applications which involving text processing and most command line applications. 

To run a Perl script in Unix:

1. Find the interpreter/executors path. In this case its /usr/bin/perl or /usr/bin/env perl.

2. Add it to the first line of the file as #!/usr/bin/perl .

3. Give execute permission to the file chmod +x example.pl.

Features of Perl language:

1. Perl takes the best features from other languages, such as C, awk, sed, sh, and BASIC, among others.

2. Perls database integration interface DBI supports third-party databases including Oracle, Sybase, Postgres, MySQL, and others.

3. Perl works with HTML, XML, and other mark-up languages.

4. Perl supports Unicode.

5. Perl supports both procedural and object-oriented programming.

6. Perl interfaces with external C/C++ libraries through XS or SWIG.

7. Perl is extensible.

8. The Perl interpreter can be embedded into other systems.

To install Perl in Linux:

1. Before proceeding with the installation of Perl in your Linux system, please have a check Perl is installed or not on your Linux system by running the below command:

# perl -v

2. Download the zipped source code available for Unix/Linux by running the below command:

# wget https://www.cpan.org/src/5.0/perl-5.28.1.tar.gz

3. After download the zip file runs the below commands to extract and install Perl:

# tar -xzf perl-5.28.1.tar.gz

# cd perl-5.28.1

# ./Configure -de


# make test

# make install

How to write your Perl script in Linux?

You can write your Perl script in a text file and the text file should have the extension '.pl'. 

To run your Perl script run the below command.

#perl filename

Eg: #perl hello.pl

Steps to create and run a Perl script in Ubuntu 20.04 LTS ?

This article will guide you on steps to #install Perl and how to create and run Perl #script using the command line on #Ubuntu 20.04. We have also discussed how to configure necessary #Perl #modules on your system.

Perl is a programming language that can be used to perform tasks that would be difficult or cumbersome on the command line. Perl is included by default with most GNU / #Linux #distributions. Usually, one invokes Perl by using a text editor to write a file and then passing it to the perl #program.

Perl has a wide range of command-line options or switches that you can use. The options are also called switches because they can turn on or turn off different behaviors. For example, the -e option lets you specify a line of code directly on the command line instead of creating a script file.

To install Perl in Linux:

1. SSH to your server.

2. Change your directory to /opt by running the below command. cd /opt.

3. Download the zipped source code available for Unix/Linux.

4. After download the zip file runs the below commands to extract and install Perl.

How to create and run a Perl script in Debian 10 ?

This article will guide you on steps to create your first #Perl #script and execute it in Debian 10. Here you will learn the basic method of creating and running a simple Perl script. Once you manage to learn this, you can use Perl scripting for lots of other programmatically complex problems.

To run a Perl script:

1. Write and Run Your First Script. All you need to write Perl #programs is a text editor.

2. Write Your Script. Create a new text file and type the following exactly as shown: #!usr/bin/perl.

3. Run Your Script. Back at the command prompt, change to the directory where you saved the Perl script.

For Linux Tutorials

We create Linux HowTos and Tutorials for Sys Admins. Visit us on LinuxAPT.com

Also for Tech related tips, Visit forum.outsourcepath.com or General Technical tips on www.outsourcepath.com