in reply to Re: front-pad a number with zero's
in thread front-pad a number with zero's

You are a genius! Where did you get this sprintf "%0${len}d", $number; It's saved me a lot of troubles. 06-13-2008 Thank you.

Replies are listed 'Best First'.
Re^3: front-pad a number with zero's
by andreas1234567 (Vicar) on Jun 13, 2008 at 09:27 UTC
    Where did you get this sprintf "%0${len}d", $number;
    The sprintf documentation, perhaps?
    printf '<%06s>', 12; # prints "<000012>"
    BTW: The thread you responded to is 7 years old.
    --
    No matter how great and destructive your problems may seem now, remember, you've probably only seen the tip of them. [1]
      I'm replying to a ten year old thread!