in reply to
Eliminating Trailing Zeros
$n =~ s/\.?0*$//;
Enjoy.
Comment on
Re: Eliminating Trailing Zeros
In Section
Seekers of Perl Wisdom