[reply cross-posted to list]
Olav Rogall wrote:
>
> Hallo fliptop,
>
> Am Tuesday, November 27, 2001 um 12:39:38 AM schriebst Du:
>
> >> $total_time = get_minutes('abc.mp3') + ':' + get_seconds('abc.mp3');
> >>
> >> the result in $total_time is "3:1", but it should be "03:01".
> >>
> >>
Olav Rogall wrote:
>
> $total_time = get_minutes('abc.mp3') + ':' + get_seconds('abc.mp3');
>
> the result in $total_time is "3:1", but it should be "03:01".
>
> how can i fill up the strings with a leading zero if the returned
> value is only one char?
perldoc -f sprintf
--
To unsub
Hallo beginners-cgi,
i have a function i called get_minutes and get_seconds.
$total_time = get_minutes('abc.mp3') + ':' + get_seconds('abc.mp3');
the result in $total_time is "3:1", but it should be "03:01".
how can i fill up the strings with a leading zero if the returned
value is