Click here to get back home

Accessing query time via DBI / DBD::MySQL

 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
Accessing query time via DBI / DBD::MySQL Graham Drabble 02-14-2006
Get Chitika Premium
Posted by Graham Drabble on February 14, 2006, 8:55 am
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
How to send a query to the browser from time to time? July 20, 2005, 9:35 am
Perl time and Mysql time September 26, 2005, 7:47 pm
net::mysql holds onto my query February 20, 2007, 12:45 pm
howto Date Time string from MYSQL to German Format October 21, 2007, 6:58 am
GMT time to local time, according to timezone and summer/winter time. May 15, 2005, 10:45 pm
CGI - How to use upload_hook and query the query string ? February 7, 2006, 1:00 pm
Msql-Mysql-modules: unable to find my mySQL 'include' dir March 4, 2005, 2:57 am
Calculating time of employee session from the log date/time stampusing perl May 24, 2005, 5:55 pm
How do I convert TIME into Cookie and last-modified-time format? October 1, 2004, 3:05 pm
Compare UNIX file time with time in a variable November 23, 2006, 2:39 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap