Training, Open Source computer languages

PerlPythonMySQLTclRubyC & C++LuaJavaTomcatPHPhttpdLinux

Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
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.
Lua
PHP
Perl
Java
MySQL
Python
Linux
Apache Tomcat
Apache httpd
C and C++
Tcl and Tcl/Tk
Hotel
Recent additions


You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2010: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 344596 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho