Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Announce > ANNOUNCE: Text:...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 1054 of 1084
Post > Topic >>

ANNOUNCE: Text::CSV_XS 0.42

by "H.Merijn Brand" <h.m.brand@[EMAIL PROTECTED] > Apr 16, 2008 at 01:49 PM

file: $CPAN/authors/id/H/HM/HMBRAND/Text-CSV_XS-0.42.tgz
  size: 86136 bytes
   md5: 1cf4491f48965793f1e31fc74159f20f

We can do MAGIC now!

Dumping the content of a database ($dbh) table ($tbl) to CSV:

  my $csv = Text::CSV_XS->new ({ binary => 1, eol => $/ });
  open my $fh, ">", "$tbl.csv" or die "$tbl.csv: $!";
  my $sth = $dbh->prepare ("select * from $tbl");
  $sth->execute;
  $csv->print ($fh, $sth->{NAME_lc});
  while (my $row = $sth->fetch) {
      $csv->print ($fh, $row);
      }
  close $fh;

2008-04-16  0.42 - H.Merijn Brand   <h.m.brand@[EMAIL PROTECTED]
>

        * Generate META.yml myself. I won't use Build.PL
        * Array-refs now accept scalars with magic:
          $csv->print (*STDOUT, $sth->{NAME_lc});
        * More/better examples
        * Added t/76_magic.t

2008-04-11  0.41 - H.Merijn Brand   <h.m.brand@[EMAIL PROTECTED]
>

        * error_diag () subclassable
        * typo in bind_columns () docs
        * examples/csv2xls now uses getline ()
        * better test for getline in t/75_hashref.t (makamata)
        * document return value of getline () with bind_columns ()
        * add perl version prereq to META.yml




 1 Posts in Topic:
ANNOUNCE: Text::CSV_XS 0.42
"H.Merijn Brand"  2008-04-16 13:49:54 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 14:57:12 CDT 2008.