store column names in first line prefixed by #
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 25 May 2015 12:07:05 +0000 (14:07 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 25 May 2015 12:07:05 +0000 (14:07 +0200)
mkp-marc.pl

index 791f98e..2c5303b 100755 (executable)
@@ -36,6 +36,8 @@ my $sth = $dbh->prepare( $sql );
 $sth->execute();
 
 warn "# ", $sth->rows,"\n";
+warn "# NAME = ",dump( $sth->{NAME} );
+print $tsv_fh "#", join("\t", @{ $sth->{NAME} }), "\n";
 
 my $i = 1;