foreach my $allfilesfound (@dir_contents) { my $time = localtime(); print "This file=$allfilesfound took $time to open
"; }