in reply to Re^3: DBD::CSV and long fields (LongReadLen not supported?)
in thread DBD::CSV and long fields (LongReadLen not supported?)

Wow. Thanks very much for that. If I could ask a couple of questions:

1. I can't seem to find data::peek in ActivePerl's package manager... I realize it isn't necessary, but I would like to see what it does.

2. I am unclear what exactly the line "$sth->bind_columns (\@rec{@{$sth->{NAME_lc}}});" does... could you give me a little more detail here? I realize it is selecting the column to print, but the syntax is more complicated than I am used to

Again thanks for your help. I am a bit of a neophyte and I don't understand binding columns quite yet.

  • Comment on Re^4: DBD::CSV and long fields (LongReadLen not supported?)

Replies are listed 'Best First'.
Re^5: DBD::CSV and long fields (LongReadLen not supported?)
by Tux (Canon) on Apr 29, 2011 at 15:54 UTC

    Data::Peek is a bit like Data::Dumper, just offering a bit more direct entries to perl's internal debugging functions. I wrote it, so it is effectively a shameless plug. However, I also use it very very often, and it has turned out to be my fav debugging tool. As some symbols needed to get the complete set of features might not be available on ActivePerl (due to linking differences on Windows), that might be why ActiveState does not include it in their binary ppm packages.

    The bind_columns example (third code snippet) is almost literally part of the DBI documentation. It is not selecting columns to print, but setting the destination for the fetched fields.


    Enjoy, Have FUN! H.Merijn