Repeating the loop

A

Arun

Hi,
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.
 
J

Jürgen Exner

Arun said:
i wanted the followinf loop to be repeated for every 30 seconds.

Didn't you ask exactly the same question in a different thread on the
20th already?
$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.

As you have been told before: perldoc -f sleep

jue
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top