NAME
TableDataRole::AsCSV - Provide as_csv() method
VERSION
This document describes version 0.1.4 of TableDataRole::AsCSV (from Perl distribution TableData), released on 2021-04-11.
as_csv
Usage:
my $csv = $table->as_csv;
Return the whole table data as CSV (string). Will reset the row iterator.
This implementation will call "reset_row_iterator", call "get_row_arrayref" repeatedly, format the rows as CSV and return it. If your source data is already in CSV format, you can simply return the CSV data instead.
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/TableData.
SOURCE
Source repository is at https://github.com/perlancar/perl-Tables.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=TableData
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
AUTHOR
perlancar <perlancar@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2021, 2020 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.