Click here to get back home

receive data from form and inseri data in the database

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
receive data from form and inseri data in the database perlnew 09-08-2004
Posted by perlnew on September 8, 2004, 9:51 pm
Please log in for more thread options
>>
>> [snip]
>>
>> > if I print "$1\n",
>> > the file prints just fine. But, if I do something like print "$1 after
>> > \n", the whole output is messed up. If I print "before $1\n", nothing
>> > prints at all. If I print "before $1 after\n", only after prints.
>>
>> not really sure, but could be a rogue "\r" in $1,


> There
> is a rogue carriage return (0xd) in the string

> Is there something I can do to deal with this
> situation?


Repair the corrupted file:

perl -p -i -e 'tr/\r//d' bad_file


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas

Similar ThreadsPosted
Using Apache::Session for storing form data as opposed to database columns December 28, 2004, 11:00 am
How to receive data from a socket March 29, 2006, 6:05 am
Need help with Perl and MySQL database data load January 14, 2005, 11:23 pm
PERL Script to Load data into an oracle database August 5, 2006, 6:55 am
getting data from database (sybase) in an html table on a webpage June 12, 2007, 5:53 pm
Accessing form POST data July 24, 2004, 10:24 pm
Posting UTF-8 form data with WWW::Mechanize and LWP May 11, 2005, 7:12 pm
send data to html form August 4, 2005, 7:06 am
Module Suggestions for Posting Form Data April 4, 2006, 8:23 pm
PB with euro sign and checkbox in multipart/form-data May 18, 2006, 1:00 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap