The stupid question is the question not asked | |
PerlMonks |
Re: zero paddingby herveus (Prior) |
on Feb 09, 2005 at 19:26 UTC ( [id://429480]=note: print w/replies, xml ) | Need Help?? |
Howdy!
$padded = substr('0000'.$raw, -4, 0);
yours, Michael
In Section
Seekers of Perl Wisdom
|
|