laziness, impatience, and hubris | |
PerlMonks |
Re: Eliminating Trailing Zerosby dreadpiratepeter (Priest) |
on Jul 17, 2003 at 14:29 UTC ( [id://275222]=note: print w/replies, xml ) | Need Help?? |
$n =~ s/\.0*$|0*$//; UPDATE: fixed lack of reading requirements -pete "Worry is like a rocking chair. It gives you something to do, but it doesn't get you anywhere."
In Section
Seekers of Perl Wisdom
|
|