in reply to Zero Padding
#!/usr/bin/perl $a=13; $length=6; while (length($a)<$length) {$a="0$a";} print $a;
-- tune
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Zero Padding
by runrig (Abbot) on Feb 03, 2001 at 03:44 UTC | |
by tye (Sage) on Feb 03, 2001 at 04:08 UTC | |
by dkubb (Deacon) on Feb 03, 2001 at 08:33 UTC | |
by tye (Sage) on Feb 03, 2001 at 09:42 UTC | |
by tilly (Archbishop) on Feb 03, 2001 at 05:11 UTC | |
by Anonymous Monk on Feb 03, 2001 at 03:49 UTC | |
by yakko (Friar) on Feb 03, 2001 at 10:27 UTC | |
|
Re: Re: Zero Padding
by Martin A (Beadle) on Feb 03, 2001 at 19:38 UTC |