How do I achieve a delay effect in perl cgi? Specifically, say, I want to be able print something after a pause of two seconds. I have not been able to do that with 'sleep'.
#pseudocode
if ($guess == 1234) {
wait_for_two_seconds;
print "Congratulations!<br>\n";
}