in reply to best way to write code
more than once. This can lead to inconsistancies in the numbers. For formatting, try this:localtime
my @time = localtime; my $yyyy = $time[5] + 1900; my $mm = sprintf("%02d", $time[4] + 1); # pad with 0's # repeat for other variables
|
|---|