On Wed, Dec 11, 2002 at 03:34:07PM -0500, Paul Kraus wrote:

> You can do this?

No.

>                  Perl will output the text to a file using html? Meaning
> that just the text as it should be and not the tags will print? Cool :)
> I did not know that. Where would I sent the content-type and can I set
> it only for a section?
> 
> > How about using HTML?
> > 
> > <div align="center">$var</div>
> > 
> > Put that in a var and print it out. Ofcourse, set 
> > content-type to text-html.
> > 
> > > How can I justify text. For example lets say I want a 50 character
> > > line that contains "TITLE", and I want it centered. Can this be
> > > done with printf?

my $width = 50;
my $text = "TITLE";
print " " x (($width - length $text) / 2), $text;

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to