Re: sprintf questions

2003-03-13 Thread Brett W. McCoy
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 w

sprintf questions

2003-03-12 Thread David Gilden
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"; Thanks Dave -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma