create a perl function
To create a function in the PL/Perl language, use the standard CREATE FUNCTION syntax: The body of the function is ordinary Perl code. In fact, the PL/Perl glue code wraps it inside a Perl subroutine. A PL/Perl function is called in a scalar context, so it can't return a list.
PL/Perl Functions and Arguments. To create a function in the PL/Perl language, use the standard CREATE FUNCTION syntax: The body of the function is ordinary Perl code. In fact, the PL/Perl glue code wraps it inside a Perl subroutine. A PL/Perl function must always return a scalar value.
To create a function in the PL/Perl language, use the standard CREATE FUNCTION syntax: The body of the function is ordinary Perl code. In fact, the PL/Perl glue code wraps it inside a Perl subroutine.