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

Align columns in a table

by ovedpo15 (Pilgrim)
on Aug 28, 2021 at 20:34 UTC ( [id://11136164]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @table_header = ("Package", "Coverage", "Line", "Method", "Branch")
    +;
    my @data_table;
    ...
    }
    my $table = Data::Table->new(\@data_table, \@table_header, 0);
    print $table->tsv."\n";
    
  2. or download this
    Package Coverage Line Method Branch
    com.gandu.base.alltests      90%     91% (20/22)     50% (1/2)       0
    +% (0/0)
    ...
    com.gandu.base.testmanager.housekeeping      72%     69% (1044/1513) 6
    +8% (116/171)   50% (130/260)
    com.gandu.base.util  10%     11% (48/450)    13% (11/82)     12% (13/1
    +07)
    com.gandu.base.util.test     81%     80% (4/5)       50% (1/2)       0
    +% (0/0)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11136164]
Approved by philipbailey
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-20 06:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found