<div dir="ltr">From code.<br><br>            $variable = sprintf("%02d", 0);<br><div><br>This of course sets $variable to '00'. But if that's what you need to do...<br><br>            $variable = 00;<br><div></div><br>Some may not have hit this -- I find new functions all the time -- but sprintf() is a variant of printf(), which formats a variable. printf() prints it, sprintf() returns it. in this case, "%02d" gives a zero-padded two digit decimal number. perldoc -f sprintf for more documentation.<br><br></div><div>sprintf() is good for converting variables, but if you hardcoded 0, you can hardcode '00'.</div><div><br></div><div>Clearly nobody involved in this code is on this list, but really, is there any justification besides cargo-cult programming?</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Dave Jacoby<br>
<a href="mailto:jacoby.david@gmail.com" target="_blank">jacoby.david@gmail.com</a><br>
<br>I deal with my software the way I treat my eldritch abomination: <br> It's not human, it's not even alive in the natural sense. </div><div dir="ltr"> It's nightmare-born and nightmare-shaped, and nightmares don't die easy.<br>  -- @yenzie</div></div></div></div></div>