Perl Programming quiz, level Advanced, question 19
| Question: | If you're running a Perl script on your server via CGI and you wish to send back a reply page to the user immediately, then have the script go off, enquire of a database and email the answers back to the user, you would: |
| Answer 1: | fork the Perl process, have the parent return the reply page and the child contact the database, and send the email This was the CORRECT answer |
| Answer 2: | Have the Perl process return the reply page, then close the connection to STDIN and STDOUT |
| Answer 3: | fork the Perl process, have the child return the reply page and have the parent contact the database, and send the email. |
| Answer 4: | Have the Perl process return the reply page, finishing with a </HTML> tag and ensuring that its buffers were flushed (using $|) before it goes on to contact the database. |
This was a question from our quiz ... but we have now provided you with
the answer (above) - we prefer to provide you with information rather than to
puzzle you.
|
|