in reply to Example using CGI::Application::Plugin::Output::XSV
#!/usr/bin/perl use warnings; use strict; use Text::CSV_XS qw{ csv }; my @header = qw( first_name last_name phone ); csv(in => [ \@header, map [ @$_{@header} ], { first_name => 'Jack', last_name => 'Tors', phone => '555-1212' }, { first_name => 'Frank', last_name => 'Rizzo', phone => '555-1515' }, ]);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Example using CGI::Application::Plugin::Output::XSV
by Tux (Canon) on May 09, 2020 at 19:20 UTC | |
|
Re^2: Example using CGI::Application::Plugin::Output::XSV
by logangha (Acolyte) on May 08, 2020 at 18:34 UTC |