in reply to Current time as variable?
then in the other partprint $cgi->hidden('time',time);
that gives you the number of seconds as a decimal. then you can domy $time=time-param('time');
Hope this helps.print $cgi->h2(sprintf("It took you %02d:%02d to take the quiz.",int($ +time/60),int($time%60)));
|
|---|