On Fri, 13 Sep 2002, Kauffmann, Andreas wrote:

> 
> Okay...
> 
> Thanks for all your answers!
> 
> >From all, I combinded the perfext solution:
> 
> rename("test.txt", "test" . &heute() . ".txt");
> 
> sub heute {
> return (localtime(time))[3] . (localtime(time))[4] . ((localtime(time))[5]
> 1900);
> }

1) Why do you want to make 3 different calls to localtime, just the one 
would do.

2) You don't have to call localtime(time), just a localtime() would do.
Be default localtime uses the current time i.e. this is evaluated
as localtime(time)

3) Do you want to do this for only one file or for multiple files in the 
directory?


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to