It takes a string as its argument and just prints it. As you can see, perl.exec is just a function in the Perl module that executes its default parameter. The following are other ways to execute Perl code. They all produce the same results. In this section we will talk about the functions you can call in your embedded Perl code to get useful stuff done.
Lets begin with the adds and related functions.
As you saw in the example above, the adds function adds a string to the resulting request. It returns as scalar value that should be evaluated to make sure the operation was succesful. Should you wish to signal an error, you should use the error method. Now, should you wish to check for an argument you can use the arg method. You might allow people to pass parameters to your Perl code.