Re: formatting money $12.00

2003-03-15 Thread Wiggins d'Anconia
David Gilden wrote: my (%bags_ordered,$bag); # is it ok to mix match the type of variables inside a # my vars declaration? Does Perl tell you it isn't? Only thing to watch out for here is combining list and scalar type variables during assignment. @bags = param('handbag'); #CGI.pm fo

Re: formatting money $12.00

2003-03-13 Thread David Gilden
> > #!/usr/bin/perl -w > > > > $num =1.12345; > > > > my $tax_formated = sprintf("%.2f", $num); # <--- THIS LINE ### $tax_formated is used in a few places > The important thing is, does it do what youo are expecting it to do? Well yes, I think so. I wanted to cut down on the times I was