Re: getting $date



optional wrote:

Consider:

chomp(my $date = `date +'%d%m%y'`);
print "date = $date\n";

TIMTOWTDI, of course, but some are better and some are worse.

Spawing an external /bin/date process is definitely worse than a Perl solution.

.