date?

Justin S's picture

They have: 2,076 posts

Joined: Jun 1999

Ok- I was wondering how to use the date of the server (IE: on my server it's /bin/date)? What I need to do is print the date to a file.

They have: 850 posts

Joined: Jul 1999

Try
$time = localtime;
print $time;

For more info
perldoc -f localtime

------------------
A can of SPAM is opened every 4 seconds.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.