in reply to scalar number with preceding 0.

What everyone said (viz, sprintf), but also:
return $h . $m . $s2;

What's $s2?

Replies are listed 'Best First'.
Re^2: scalar number with preceding 0.
by PerlingTheUK (Hermit) on Jul 26, 2004 at 16:41 UTC
    $s2 is indication for half a second. But that does not have any influence on the result.
      Sounds like you're not using strict... doing that might shed some light on the problem (and indeed on unseen and unforseen ones as well).
        I use strict. I have three little ... in my function filling it with life. The weird thing is that even though debugging this I first get the leading zeros, the concatenation kills it. why is that, I cannot see anything describing that effect.