in reply to Re^4: Execute on conditional check
in thread Execute on conditional check

change
while ($time_val == "08:28:00") {
to
if ($time_val eq "08:28:00") {
Update: (thanks to Perlbotics)

also change

$time_val="$hour:$min:$sec";
to
$time_val=sprintf("%02d:%02d:%02d", $hour, $min ,$sec);
Then all values smaller than 10 will be formatted with two digits.