in reply to
time it took script to complete
Using $start = localtime(time()) returns a date-time string since it is being used in a scalar context. See localtime, gmtime, and particularly time. Better yet, read about them in Programming Perl.
Results (329 votes),