PDA

View Full Version : time delay


codingmaestro
08-27-2007, 02:00 PM
I`m very new to Perl programming and using Perl 5.8.0 on Linux environment. Can somebody post a reply explaining how to call an event(ex-a simple subroutine) from perl after a certain time delay and repeat again if needed.

I really appreciate if somebody can post a sample code explaining this and look forward to hear from somebody soon.

FishMonger
08-27-2007, 06:38 PM
I could be wrong but, this sounds like a homework assignment.

Do you have a book on Perl? You'll want to read-up on the following items.

do
while
until
for
foreach
sleep

The sleep command is used to setup your time delay. The others are different methods of loop control.

codingmaestro
09-07-2007, 07:32 AM
Thanks for the help but I also got it rght.