http://www.perlmonks.org?node_id=405936


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.
perlcapt
-ben