in reply to Re^3: Execute on conditional check
in thread Execute on conditional check
What is the problem in this script. I am writing the while loop recursivley, so that even for the next day it will execute checking on the condition.while () { my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime t +ime; $time_val="$hour:$min:$sec"; while ($time_val == "08:28:00") { print "1st loop\n"; } while ($time_val == "08:28:30") { print "2nd loop\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Execute on conditional check
by Corion (Patriarch) on Jun 20, 2010 at 15:35 UTC | |
|
Re^5: Execute on conditional check
by hexcoder (Curate) on Jun 20, 2010 at 21:04 UTC |