Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Repeating the loop

Reply
Thread Tools

Repeating the loop

 
 
Arun
Guest
Posts: n/a
 
      08-27-2008
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( ":ATA::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.
 
Reply With Quote
 
 
 
 
Jürgen Exner
Guest
Posts: n/a
 
      08-27-2008
Arun <> wrote:
>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( ":ATA::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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Triple nested loop python (While loop insde of for loop inside ofwhile loop) Isaac Won Python 9 03-04-2013 10:08 AM
Repeating Generate loop masoud VHDL 0 04-06-2012 07:57 PM
datalist repeating first record Lewis ASP .Net 3 08-22-2003 01:43 PM
Repeating asp.net grid headers Kenneth ASP .Net 3 08-11-2003 11:10 PM
Re: Handle user auto-repeating refresh in browser Jordan Marton ASP .Net 2 08-01-2003 02:00 AM



Advertisments