require "timelocal.pl"; $time = &timelocal(@timearray); $time = &timegm(@timearray);