The main advantage to using PL/Perl is that this allows use,
within stored functions, 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, or from the shell command
line use createlang plperl dbname.

Tip: If a language is installed into template1, all subsequently created databases
will have the language installed automatically.

Note: Users of source packages must specially
enable the build of PL/Perl during the installation process.
(Refer to Chapter 15 for more
information.) Users of binary packages might find PL/Perl in
a separate subpackage.

Submit correction

If you see anything in the documentation that is not correct, does not match
your experience with the particular feature or requires further clarification,
please use
this form
to report a documentation issue.