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.
To run a Perl script on CentOS 8:
- Write and Run Your First Script. All you need to write Perl programs is a text editor.
- Write Your Script. Create a new text file and type the following exactly as shown: #!usr/bin/perl.
- Run Your Script. Back at the command prompt, change to the directory where you saved the Perl script.