<?xml version="1.0" encoding="windows-1252"?>
<node id="361443" title="andye's scratchpad" created="2004-06-05 06:06:50" updated="2005-07-28 02:22:55">
<type id="182711">
scratchpad</type>
<author id="41758">
andye</author>
<data>
<field name="doctext">
&lt;code&gt;
 sub table(){
     my $decl = RTF::Writer::TableRowDecl-&gt;new('widths' =&gt; [1500,1900,1900]);
     foreach my $outer (@tableData) {
        foreach my $inner (@{$tableData[$outer]}) {
             $fh-&gt;row($decl, $inner) 
        }
     }
   
 }



OR



 sub table(){
     my $decl = RTF::Writer::TableRowDecl-&gt;new('widths' =&gt; [1500,1900,1900]);
     foreach my $i (0 .. $#tableData) {
        foreach my $j (0 .. $#{$tableData[$i]}) {
             $fh-&gt;row($decl, $tableData[$i]-&gt;[$j]) 
        }
     }
   
 }






OR as an arrayref



my $tableData = [ # note square bracket
        ['this', "that", 'jhsdfhjsa'],
        ["that", "this", 'kjhsadfh'],
        ["me", "none", 'slhdfjhsf'],
        ]; # note square bracket

then later:
             $fh-&gt;row($decl, $tableData-&gt;[$i]-&gt;[$j]) 



&lt;/code&gt;</field>
</data>
</node>
