Just another Perl shrine | |
PerlMonks |
Re: Eliminating Trailing Zerosby RollyGuy (Chaplain) |
on Jul 17, 2003 at 14:40 UTC ( [id://275231]=note: print w/replies, xml ) | Need Help?? |
$n =~ s/\.?0*$//;
Enjoy.
In Section
Seekers of Perl Wisdom
|
|