in reply to Eliminating Trailing Zeros
$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."
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."
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Eliminating Trailing Zeros
by Trimbach (Curate) on Jul 17, 2003 at 14:37 UTC | |
| |
Re: Re: Eliminating Trailing Zeros
by Anonymous Monk on Jul 17, 2003 at 14:40 UTC |
In Section
Seekers of Perl Wisdom