Re: Formatting Variables in Perl

2001-10-04 Thread Gerald Richter
>Im still having trouble. Will this work with Print MAIL as well? If MAIL is a filehandle, Yes Gerald - Gerald Richterecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Po

RE: Formatting Variables in Perl

2001-10-04 Thread Carter, Pamela A.
Im still having trouble. Will this work with Print MAIL as well? -Original Message- From: Luiz Fernando B. Ribeiro [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 12:34 PM To: Carter, Pamela A. Subject: Re: Formatting Variables in Perl Hi Pamela, Try this: $value = 200

RE: Formatting Variables in Perl

2001-10-04 Thread Carter, Pamela A.
Thank you! -Original Message- From: Luiz Fernando B. Ribeiro [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 12:34 PM To: Carter, Pamela A. Subject: Re: Formatting Variables in Perl Hi Pamela, Try this: $value = 200; $value_ok = sprintf("%.2f", $value);

Re: Formatting Variables in Perl

2001-10-04 Thread Luiz Fernando B. Ribeiro
Hi Pamela, Try this: $value = 200; $value_ok = sprintf("%.2f", $value); print "R\$ $value_ok"; # gives R$ 200.00 Resposta a sua mensagem de quinta-feira, 4 de outubro de 2001: CPA> I am passing a variable that needs to be in currency format (with two CPA> decimal places). It passes as a who