in reply to Re: globref to plain text
in thread globref to plain text

yes, first I write it to c_a.txt and after everything that must be in 1 of the colums of the database is write to c_a.txt. after that I want to get all the text that is stored into c_a.txt send to something that can placed into the colum of the database

Replies are listed 'Best First'.
Re^3: globref to plain text
by Corion (Patriarch) on Jan 09, 2009 at 09:49 UTC

    I'm sorry, but I don't understand what you're doing there and why. It would maybe help me help you better if you could tell me the big picture view of things, that is, what goal you are trying to achieve with this program. If all you want to do is accumulate data and then store it in the database, maybe an array is what you want, or possibly just a scalar to which you append new information as it becomes available. See the join function for how to convert an array to a scalar.

      I want to get the cc and al the filenames of the attachments that are in an E-mail into 1 cel of a database. and with my example E-mails I know how much attachments are in it, but when I'm gonna use it I don't know before, so I thought: i write all the cc's and filenames to a file which I can read after that so I can get the text of it and print it into the database. that is it at the moment, there is more to be done, but that is work for later to me.

        You don't "print" things into the database, and why are you writing all that information to a file, just to read that file in again right afterwards? Just append all the data to a string, and then insert that string into the database. Where exactly are you having problems?