Forum Moderators: coopster & phranque

Message Too Old, No Replies

Very strange request for PERL

The script runs too fast

         

mdharrold

1:16 am on Aug 28, 2001 (gmt 0)

10+ Year Member



I have a customer that I have built a small PERL script that builds a page based on user input.

The customer now wants it to appear as if more is going on in the background and to have a time delay before the new page is created.

Does PERL have a time delay or wait function?

I thought about just opening some file and write some garbage to it 2 or 3 times, but a timer would be a little nicer.

Air

1:37 am on Aug 28, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



sleep(10);

Will sleep 10 seconds, making it seem like more is going on (ROFL, that's funny!)

sleep(200);

will make it seem the site is down :)

mdharrold

2:41 am on Aug 28, 2001 (gmt 0)

10+ Year Member



Thank you, Air. I hope I continue to have a "too fast" problem.