B.81. Perl()

Executes a Perl function or script.
Perl(function[:arg1[:arg2[:...]]])
Perl(loadfile:filename[:arg1[:arg2[:...]]])

Important

Use of Perl() requires the res_perl[68]Asterisk module to be compiled and loaded. As an alternative, you may execute Perl scripts using System().
Executes a function from the Asterisk::Embed Perl module in /usr/local/res_perl/modules/asterisk_init.pm or a specfied Perl script (e.g. demo.pl) from the /usr/local/res_perl/apps/ directory. The advantage of this over shell execution is that the interpreter need not be re-loaded every time, which will improve performance.
The res_perl module is not necessarily compatible with current Asterisk versions and will not be described further in this book.