Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 chanting in the Monastery: (10)
As of 2014-10-24 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (131 votes), past polls