Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

andye's scratchpad

by andye (Curate)
on Jun 05, 2004 at 10:06 UTC ( #361443=scratchpad: print w/ replies, xml ) Need Help??

sub table(){ my $decl = RTF::Writer::TableRowDecl->new('widths' => [1500,1900, +1900]); foreach my $outer (@tableData) { foreach my $inner (@{$tableData[$outer]}) { $fh->row($decl, $inner) } } } OR sub table(){ my $decl = RTF::Writer::TableRowDecl->new('widths' => [1500,1900, +1900]); foreach my $i (0 .. $#tableData) { foreach my $j (0 .. $#{$tableData[$i]}) { $fh->row($decl, $tableData[$i]->[$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->row($decl, $tableData->[$i]->[$j])
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2014-07-31 00:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (242 votes), past polls