I think you probably want to use sprintf rather than what you are doing now.
sub format_time { my ( $h, $m, $s) = @; return sprinf "%.02d%.02d%.02d", $h, $m, $s; }
/J\
In reply to Re: scalar number with preceding 0.
by gellyfish
in thread scalar number with preceding 0.
by PerlingTheUK
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |