View Problem

Zero pad a number

Given the number 42, pad it to 8 characters like 00000042
DiskEdit
perl
sprintf("%08d", 42);

Submit a new solution for perl
There are 36 other solutions in additional languages (clojure, cpp, csharp, erlang ...)