On Thu, 14 Apr 2005, Michael Gale wrote:

>       In perl, is there a way to produce a formatted output much like 
> in html you can create a table to produce the output ?
> 
> I have tried using tabs, but it gets messy :(

Yes, lots of ways. 

Perl has a big old reporting framework that goes back to the beginning 
of the language -- the 'R' in "Perl" may or may not stand for it. A book 
like _Learning Perl_ or _Programming Perl_ will cover it thoroughly.

At this point though, that framework is pretty archaic -- it can be very 
cumbersome to use. Depending on what your exact needs are, you may find 
it much easier to use one of the many template systems that are on CPAN. 
Most of these were developed for making HTML templates for the web, but 
template frameworks like Template Toolkit, HTML::Template, and Mason can 
be just as useful for things like XML, plain ASCII, or even more complex 
binary formats like PDF or Excel.

What to use though depends on what your needs are: what problem you're 
trying to solve, what you have to work with (OS -- based on your message 
headers, Linux or another Unix? -- libraries, databases, etc). 

In general, this list can help with broad answers to broad questions, 
and with specific answers to specific questions.

So... What have you tried so far? What do you need to do?
 

-- 
Chris Devers

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to