Repeating the loop

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

     i am new to perl so i uat wanted some help.
i wanted the followinf loop to be repeated for every 30 seconds.

$send_data = strftime( "::DATA::123456789101112,%d.%m.%Y,%H:%M:%S,
13.0076367,77.5489267,0,933.4,AirTel,31,0 \n", gmtime);

DATA: {while(1)
    $handle-> send($send_data);
    last DATA;

so how do i do it.

Re: Repeating the loop

Quoted text here. Click to load it

Didn't you ask exactly the same question in a different thread on the
20th already?

Quoted text here. Click to load it

As you have been told before: perldoc -f sleep


Site Timeline