[EMAIL PROTECTED] wrote: : : I tried with this way, but not work: One reason for the problem is that perl does not recognize " and " as operators. The print statement needs some type of delimiter to print plain text.
As you probably know already, a pair of double quotes (") is one set of delimiter. Perl also has a single quote (') for delimiting printable text. In the 'perlop' file we find several other perl operators which allow us to print quoted text under the section entitled Quote and Quote-like Operators. Namely q{}, qq{} and qw{}. Read the docs for detailed information. print MAPA q{<table width="95%" border="0" cellspacing="0" cellpadding="0">}; print MAPA qq{<table width="95%" border="0" cellspacing="0" cellpadding="0">}; Last are <<HERE documents which are like HTML <pre> tags for printing. If you find your <<HERE documents are not printing, consult perlFAQ 4, "Why don't my <<HERE documents work?" : print MAPA "<table width="95%" border="0" cellspacing="0" cellpadding="0">"; Use single quotes when you need to print double quotes without interpolation. print MAPA '<table width="95%" border="0" cellspacing="0" cellpadding="0">'; There are many perl modules for handling HTML and xhtml output. Since CGI is often used for tabular data, table processing has a number of programmatic solutions which considerably reduce typing and increase program readability. #!/usr/bin/perl use strict; use warnings; use HTML::Table; my $test = new HTML::Table( -width => '95%', -spacing => 0, -padding => 0, -border => 0, -data => [ [ 'test', 'test'], [ 'test', 'test'], ], ); print $test; __END__ HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>