ok heres the snippit of code and i'm bodging this together from a couple of different sources so bear with me here...
<BEGIN..>
use CGI;
my $req = new CGI;
my $file = $req->param("FILE1");
my $login = $req->param("login");
my $description = $req->param("description");
$description =~ tr/\n/ /;
<END>
everythign is coming in from a CGI post form the problem I'm still having is that when I write the description variable out to a database file it still has the X0D (carriage return) character in it in any place that I have hit the return in the multi line text field I have placed "$description =~ tr/\n/ /;" in the script as someone had pointed out to me before in another post and it had gotten rid of the problem for me in another script but this one I'm working with now has a bit different way of handling the input from the CGI post. any help would be greatly appreciated

In reply to still confused with CGI and carriage returns carriage returns by redpaw

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.