Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: My Experiences with using CGI::Application and Template::Toolkit To Build an Online Shopping Cart

by runrig (Abbot)
on Sep 20, 2002 at 23:23 UTC ( #199662=note: print w/replies, xml ) Need Help??


in reply to My Experiences with using CGI::Application and Template::Toolkit To Build an Online Shopping Cart

When an order is placed, an email confirmation is sent. In this confirmation, the order itself is printed out. The problem is, that it's hard to make text-based tables without using Perl Formats, which have to be, as far as I can tell, directed to a file handle or STDOUT, which isn't too clean. I found that a little module called Text::FormatTable work wonders.

Using $^A (see perlvar) and formline you don't need to direct format output to a handle. When I found out about them, I documented it here. Text::Format looks a bit more comprehensive anyway, though :-)

  • Comment on Re: My Experiences with using CGI::Application and Template::Toolkit To Build an Online Shopping Cart

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://199662]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2016-12-03 01:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (51 votes). Check out past polls.