Re: Logfile name

2005-01-25 Thread Jan Eden
Owen wrote on 25.01.2005: >On Mon, 24 Jan 2005 14:31:53 +0100 Jan Eden <[EMAIL PROTECTED]> >wrote: > >>Hi, >> >>I create monthly log files with names like statistics_01_2005.log. >>Now I have a function which returns the logfile name for the current >>

Re: Logfile name

2005-01-24 Thread Owen
On Mon, 24 Jan 2005 14:31:53 +0100 Jan Eden <[EMAIL PROTECTED]> wrote: > Hi, > > I create monthly log files with names like statistics_01_2005.log. Now I have > a function which returns the logfile name for the current month: > > sub statfile { > my @date

Logfile name

2005-01-24 Thread Jan Eden
Hi, I create monthly log files with names like statistics_01_2005.log. Now I have a function which returns the logfile name for the current month: sub statfile { my @date = localtime(time); my ($month, $year) = @date[4,5]; $year += 1900; $month = sprintf ("%02d"