well, there's also the 'time' operator...
but it all depends on what format you want/need
of course, there's the Date::Format module on cpan taht probably can format
it anyway you like
look at it here:
http://search.cpan.org/search?mode=module&query=date%3A%3Aformat
hth,
Jos Boumans
----- Original Message -----
From: "Tim Grossner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 24, 2001 10:33 PM
Subject: Opening a file, but adding the date to the name
> I want to open a file:
>
> open (CONFIG, ">/tftpboot/$_");
> chmod (0777, "/tftpboot/$_");
>
> but i want to make the filename be $_."the current date"
>
> the localtime function doesnt look very promising, as the output is not
> very human readable :-)
>
> Any thoughts?
>
>
>
> Tim Grossner
> voice - 217-438-6161
> pager - 217-467-3148
> cell - 217-971-3060
> data - [EMAIL PROTECTED]
> (GPG/PGP key available at http://www.cityscape.net/~tg/tim.grossner.gpg or
http://www.wirelessways.org/~tg/tim.grossner.gpg
> meatspace address - 202 Harrison, Auburn, Illinois 62615
>
> "Davien the Betrayer shall hear no reason, nor bow to the Law of the
> Major Balance; neither shall the Fellowship be restored to Seven until
> the Black Rose grows wild in the vales of Daon Ramon."
> "The briar will take root on the day that Arithon s'Ffalenn embraces
kingship."
>
> --The Black Rose Prophecy
>
>