in reply to A delay effect...

maybe
sleep(2);
? And make sure autoflushing ($|++;) is active!

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.