Re: fstring filling

2001-11-27 Thread fliptop
[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". > >> > >>

Re: fstring filling

2001-11-26 Thread fliptop
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

fstring filling

2001-11-26 Thread Olav Rogall
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