$number = "0".$number until length $number >= 3;
Did you and
Matt Wright go to school together?
{sigh}
-- Randal L. Schwartz, Perl hacker
update:
You know, when I first posted my comment, and the post was something
Matt-Wright-ish, as I commented above, I left my vote neutral. But when
it was changed to:
You know what? merlyn wins. Forget it. I'll stop offering advice before running it past him first.
I finally invoked a downvote. Don't post code here unless you can take open criticism,
including a little ribbing and being compared to the bad-code-poster-Child.