On Aug 20, 10:54 am, [EMAIL PROTECTED] (Arun) wrote:
> Hi,
> I just wanted small help here, i want to repeat an array for every
> 30 seconds.
> lets us keep i want to send an array for every 30 seconds and also
> should be able to quit as per the user.
Hi Arun,
You can use 'sleep' to achive this.
eg:
for (;;)
{
# Parse the array here
sleep 30;
# take input fro user and store it in a variable say 'userReply'
# if we need to quit let's suppose when user enters q
if (userReply eq 'Q')
{
last; # this will exit from infinite for loop
}
}
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/