hi monks, here is a question for you

I got a program here, and I want to change something in it, but I don't know how... here is a sub of the code:

sub open_log_mail { open my $info, ">c_a.txt"; if ($cc ne 0){ print $info "$cc"; } my $a=@filename; my $n=0; for (my $l=0; $l<$a; $l++){ if ($filename[$n] ne 0){ print $info "$filename[$n]\n"; $filename[$n]=0; } $n++; } close $info; open $info, "<c_a.txt"; print $info; $dbh->do("INSERT INTO items_mma(item, businesstype, direction, destina +tion, nature, role, relcode, project, title, subject, keywords, comme +nts, created, creator, changed, changer, signature, size, status) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", unde +f, ($openvalue, '1', $openvalue, 'MES', $openvalue, '1', $openvalue, +'1', $openvalue, $subject, $openvalue, $info, "$Month-$Day-$Year", 'M +MA', "$Month-$Day-$Year", '1', '1', '1', '1')) or die ("kan niet toev +oegen!"); close $info; }
if I have an E-mail with several attachments and a cc... now I want to have those into $info... at the moment I get a globref, but I want to have there just plain text. but I don't know how, who knows?

ohw and there are 2 places where I look variable ne to 0... I've made the scarlar 0 if it was undifined. that is the reason that I've that in my code


In reply to globref to plain text by Bass-Fighter

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.