Run Perl Scripts on macOS

This section provides notes to verify Perl version supported on macOS and run a simple Perl script.

Perl is one of the popular scripting languages used on Unix/Linux systems. macOS supports Perl out-of-the-box. You don't have to do any installation.

You can start a Terminal window and try to run Perl scripts as shown below:

herong$ perl -v

This is perl 5, version 18, subversion 2 (v5.18.2) built for ...
(with 2 registered patches, see perl -V for more detail)

Copyright 1987-2013, Larry Wall
...

herong$ cat > hello.pl
print "Hello world!\n";
Ctrl-d

herong$ perl hello.pl
Hello world!

Note that you need to press "Ctrl" and "d" together to end the input for the "cat" command.

Table of Contents

 About This Book

 Macintosh OS (Operating System) History

 macOS Operating System

 macOS File Systems

 macOS Network Connections

 System and Application Processes

 Keychain Access - Password Manager

 Keychain Access - Certificate Manager

 Productivity Tools on macOS

Programming Tools on macOS

Run Perl Scripts on macOS

 Install File::Util for Perl

 Run Python Scripts on macOS

 Install New Version of Python on macOS

 pip3 - Package Installer for Python 3

 Run PHP Scripts on macOS

 Install MySQL Database Server on macOS

 PHP mysqli_connect() Error on "localhost"

 Install SQuirreL SQL Client on macOS

 Connect SQuirreL to MySQL on macOS

 Install SQuirreL SQL Scripts Plugins

 Apache Web Server on macOS

 Develop and Run Java Applications

 Full Version in PDF/EPUB