P is for Practical | |
PerlMonks |
Re: substitution "0" in decimalsby jettero (Monsignor) |
on Dec 07, 2009 at 23:50 UTC ( [id://811648]=note: print w/replies, xml ) | Need Help?? |
You can use some kind of number formating or you can learn about regular expressions (perlretut). Heck, I think you can even do this with $x = $old + 0. Cheers.
-Paul
In Section
Seekers of Perl Wisdom
|
|