Paolo <[EMAIL PROTECTED]> wrote: : : print table({-width=>'100%', -bgcolor=>'#DC00DC', -border=>3}, : Tr([ : td(['text left', 'text right'] : ]) : ); : How can I modify this commands to make the 'text left' : element width 20% of the table, and 'text right' element : the rest?
I don't think you can: print table( { -width => '100%', -bgcolor => '#DC00DC', -border => 3 }, Tr( [ td( { -width => '20%' }, 'text left' ), td( { -width => '80%' }, 'text right' ), ]) ); If you need to print a bunch of rows like this, create a subroutine: print table( { -width => '100%', -bgcolor => '#DC00DC', -border => 3 }, row( 'text left', 'text right' ), row( 'more text left', 'more text right' ), row( 'still more text left', 'still more text right' ), ); sub row { return Tr( [ td( { -width => '20%' }, $_[0] ), td( { -width => '80%' }, $_[1] ), ]); } HTH, Charles K. Clarkson -- Head Bottle Washer, Clarkson Energy Homes, Inc. Mobile Home Specialists 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]