Chapter 44. PL/Perl — Perl Procedural Language
Table of Contents
PL/Perl is a loadable procedural language that enables you to write Postgres Pro functions and procedures in the Perl programming language.
The main advantage to using PL/Perl is that this allows use, within stored functions and procedures, of the manyfold “string munging” operators and functions available for Perl. Parsing complex strings might be easier using Perl than it is with the string functions and control structures provided in PL/pgSQL.
To install PL/Perl in a particular database, use CREATE EXTENSION plperl.
Tip
If a language is installed into template1, all subsequently created databases will have the language installed automatically.
Note
The plperl language is supported in Postgres Pro Standard. The corresponding extension is supplied as a separate pre-built package postgrespro-std-14-plperl (for the detailed installation instructions, see Chapter 16).