> Thierry Botten wrote:
> 
> Hi,
> 
> I'm currently stuck with some layout problem.
> Scenario is simple : i have a webform that asks some stuff and processes these 
>figures using a perl script. Once the processing is done the visitor get's an e-mail 
>with some descriptions and some figures. And the last line contains a grand total.
> For now it looks about like the ex. below :
> 
> Description                Amount               Total
> --------------------------------------------------------------------------
> Milk                          1                         10$
> Cheese                        3                         20$
> Die Hard DVD                       1                         20$
> Coke                          3                         5$
> ---------------------------------------------------------------------------
> Grand Total                                            55$
> 
> The question : How can i make this layout better? Any code examples would be nice :-)

Use (s)printf with a fixed field width for each field.

PS: Please post in plain text.
-- 
  ,-/-  __      _  _         $Bill Luebkert   ICQ=14439852
 (_/   /  )    // //       DBE Collectibles   http://www.todbe.com/
  / ) /--<  o // //      Mailto:[EMAIL PROTECTED] http://dbecoll.webjump.com/
-/-' /___/_<_</_</_    http://www.freeyellow.com/members/dbecoll/
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to