On Wed, 12 Mar 2003, David Gilden wrote:
> Is the following considered ok as in good PERL style?
>
> #!/usr/bin/perl -w
>
> $num =1.12345;
>
> my $tax_formated = sprintf("%.2f", $num); # <--- THIS LINE
>
> print "$tax_formated " ,length($tax_formated), "\n";
The important thing is, does it do what youo are expecting it to do?
-- Brett
http://www.chapelperilous.net/
------------------------------------------------------------------------
QOTD:
"The elder gods went to Suggoth and all I got was this lousy T-shirt."
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]