Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Text::Table 1.125

    Download button

    No screenshots available
    Downloads: 227  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Anno Siegel | More programs
    Perl Artistic License / FREE
    September 19th, 2012, 07:01 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Text::Table description

    Organize Data in Tables

    Organization of data in table form is a time-honored and useful method of data representation.

    While columns of data are trivially generated by computer through formatted output, even simple tasks like keeping titles aligned with the data columns are not trivial, and the one-shot solutions one comes up with tend to be particularly hard to maintain.

    Text::Table is a Perl module that allows you to create and maintain tables that adapt to alignment requirements as you use them.

    SYNOPSIS

     use Text::Table;
     my $tb = Text::Table->new(
     "Planet", "Radius\nkm", "Density\ng/cm^3"
     );
     $tb->load(
     [ "Mercury", 2360, 3.7 ],
     [ "Venus", 6110, 5.1 ],
     [ "Earth", 6378, 5.52 ],
     [ "Jupiter", 71030, 1.3 ],
     );
     print $tb;

    This prints a table from the given title and data like this:

     Planet Radius Density
     km g/cm^3
     Mercury 2360 3.7
     Venus 6110 5.1
     Earth 6378 5.52
     Jupiter 71030 1.3


    Note that two-line titles work, and that the planet names are aligned differently than the numbers.


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    data organizer | data representation | Perl module | table | data | organizer

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM