#!/usr/bin/perl my $num = 5; $num = substr("00",2-length($num)) . $num if length($num)<2; print $num;
In reply to Re: Ok, here's an easy one
by abitkin
in thread Zero padding numbers (was: Ok, here's an easy one)
by glickjd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |