in reply to Formatting question??

You're writing a comma-separated file, so you don't need format statements. And you apparently already know about the print statemnent, so I don't really understand what your question is.

I'm going to take a guess that what you want is to get a hash returned. So why not do

my %fields = $_read_sth->{NAME}; print "$fields{Account},$fields{Symbol},....\n";

Perhaps if you could expand on what your difficulty is, I could do a better job of trying to help.