劉康民 > Template-Plugin-CSV > Template::Plugin::CSV

Download:
Template-Plugin-CSV-0.04.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.04   Source  

NAME ^

Template::Plugin::CSV - Plugin for generating CSV

SYNOPSIS ^

    [% USE CSV %]

    [% CSV.dump(list_var) %]
    [% CSV.dump_values(hash_var) %]

DESCRIPTION ^

This is a very simple TT2 Plugin for generating CSV. A CSV object will be instantiated via the following directive:

    [% USE CSV %]

METHODS ^

There are two methods supported by the CSV object. Each will output a comma-sepeated line.

dump()

Given a list and dump a comma-sepearted line of its elements.

dump_values()

Given a hash and dump a comma-sepearte lines of its values.

new()

A Template::Plugin constructor.

AUTHOR ^

Kang-min Liu <gugod@gugod.org>

COPYRIGHT ^

Copyright (C) 2005 Kang-min Liu, All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO ^

Template::Plugin::Dumper, Text::CSV

syntax highlighting: