Re: using perl to print yesterday's date, but with formatting options ?



Purl Gurl wrote:
Tom Van Overbeke wrote:

(snipped)

But the format I need is: 30.10.05

print $Array[3], ".", $Array[4] + 1, ".", $Array[5] + 1900;


#!perl

@Array = localtime(time - 86400);

print $Array[3], ".", $Array[4] + 1, ".0", $Array[5] - 100;


Purl Gurl

.