On Wed, 30 Jan 2002, John W. Krahn wrote:
> Roger Morris wrote:
> >
> > At 04:38 PM 1/30/2002 -0500, you wrote:
> > >
>
> And of course so will the perl function time().
I'm more used to bash and bash scripts. I was going to look up the
function in perl, honest I was.
--
To unsubscribe, e
On Jan 30, John W. Krahn said:
>Roger Morris wrote:
>>
>> At 04:38 PM 1/30/2002 -0500, you wrote:
>> >
>> >Could someone please help out with the problem of dynamically changing the
>> >name of an output file? I would like to concatenate the date to the name
>> >of the output file so that each
Roger Morris wrote:
>
> At 04:38 PM 1/30/2002 -0500, you wrote:
> >
> >Could someone please help out with the problem of dynamically changing the
> >name of an output file? I would like to concatenate the date to the name
> >of the output file so that each time I run my script, the name of the
>
Here is a starting place:
#!perl -w
my ($day, $mon, $year) = (localtime(time))[3..5]; # pull day, mon, year
$year %= 100; # I trim to 2 digits, but
could add 1900 for 4
# digit
At 04:38 PM 1/30/2002 -0500, you wrote:
>Hi,
>
>Could someone please help out with the problem of dynamically changing the
>name of an output file? I would like to concatenate the date to the name
>of the output file so that each time I run my script, the name of the
>output file is different.