[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl-win32-web
Subject:    Re: Layout question...
From:       "$Bill Luebkert" <dbe () wgn ! net>
Date:       2001-04-20 22:46:01
[Download RAW message or body]

> 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:dbe@todbe.com http://dbecoll.webjump.com/
-/-' /___/_<_</_</_    http://www.freeyellow.com/members/dbecoll/
_______________________________________________
Perl-Win32-Web mailing list
Perl-Win32-Web@listserv.ActiveState.com
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic