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

    CSV::Template 0.03

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Stevan Little | More programs
    Perl Artistic License / FREE
    July 25th, 2010, 00:12 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    CSV::Template description

    A CSV templating module derived from HTML::Template

    CSV::Template is a subclass of HTML::Template that does some minor post processing of the output. Since HTML::Template really just operates on plain text, and not HTML specifically, it dawned on me that there is no reason why I should not use HTML::Template (and all my HTML::Template friendly data structures) to generate my CSV files as well.

    Now this is by no means a full-features CSV templating system. Currently it serves my needs which is to display report output in both HTML (with HTML::Template) and in CSV (to be viewed in Excel).

    SYNOPSIS

     use CSV::Template;

     my $csv = CSV::Template->new(filename => "templates/test.tmpl");

     $csv->param(report_title => $csv->quote_string('My "Report"'));
     $csv->param(report_data => [
     { one => 1, two => 2, three => 3 },
     { one => 2, two => 4, three => 6 },
     { one => 3, two => 6, three => 9 },
     ]);

     print $csv->output();



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    CSV templating | Perl module | CSV | templating | HTML::Template

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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