Repeating the loop

Discussion in 'Perl Misc' started by Arun, Aug 27, 2008.

  1. Arun

    Arun Guest

    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.
     
    Arun, Aug 27, 2008
    #1
    1. Advertising

  2. 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( "::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
     
    Jürgen Exner, Aug 27, 2008
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Lewis

    datalist repeating first record

    Lewis, Aug 22, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    1,957
    Ignacio Machin
    Aug 22, 2003
  2. Jordan Marton
    Replies:
    2
    Views:
    503
    Yan-Hong Huang[MSFT]
    Aug 1, 2003
  3. Kenneth

    Repeating asp.net grid headers

    Kenneth, Aug 10, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    2,219
    MS News \(MS ILM\)
    Aug 12, 2003
  4. masoud

    Repeating Generate loop

    masoud, Apr 6, 2012, in forum: VHDL
    Replies:
    0
    Views:
    851
    masoud
    Apr 6, 2012
  5. Isaac Won
    Replies:
    9
    Views:
    381
    Ulrich Eckhardt
    Mar 4, 2013
Loading...

Share This Page