in reply to globref to plain text

Do you want to read from the file c_a.txt, then?

Maybe you just want the diamond operator (or File::Slurp):

my $filename = 'c_a.txt'; open my $fh, '<', $filename or die "Couldn't open '$filename': $!"; print for <$fh>;

Replies are listed 'Best First'.
Re^2: globref to plain text
by Bass-Fighter (Beadle) on Jan 09, 2009 at 09:46 UTC
    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

      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.