in reply to Re: Re: string concatenation
in thread string concatenation

The problem is that $min is returned from localtime as "2" instead of "02", the same with hours for that matter you could do something like the following:
my ($min,$hours) = (localtime)[2,3]; my $now = $hours . sprintf ("%02",$min);

-enlil

Replies are listed 'Best First'.
Re: Re: Re: Re: string concatenation
by Anonymous Monk on Nov 13, 2002 at 14:51 UTC
    Thanks! EnLil. That works great.