Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use IO::Text::CSV_XS;
- IO::Text::CSV_XS::open my $fh, '<', $file,
- columns => 'detect',
- column_names => 'lc',
- record => 'HASH',
- %options
- or die ...;
- while (my $record = <$fh>) {
- ...;
- }
- IO::Text::CSV_XS::open my $fh, '>', $file,
- columns => [qw[ foo bar ]],
- column_names => 'uc',
- record => 'HASH',
- %options
- or die ...;
- print $fh [qw[ 1 2 ]], [qw[ 3 4 ]], { foo=> 5, bar => 6 };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement