Click here to get back home

installing dbd::mysql via cygwin on windows

 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
installing dbd::mysql via cygwin on windows Glenn 12-04-2004
Get Chitika Premium
Posted by Glenn on December 4, 2004, 1:31 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

Posted by Matt Garrish on December 4, 2004, 3:03 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
Performance on Windows: Cygwin is much faster. Why? June 7, 2008, 8:26 am
C/C++:Can't Use "ssh/rsh ... ps ..." To Windows: cygwin not allowed, application conflicts May 9, 2005, 12:24 pm
several problems with cygwin perl, Activeperl, perlmagick and Apache (Windows) December 21, 2005, 3:08 am
question installing DBD::mysql June 14, 2006, 1:57 pm
problem installing DBD/mysql.pm November 7, 2007, 4:11 am
Problem installing DBD::mysql December 21, 2007, 2:21 am
Problem installing DBD::MySQL 2.9004 August 29, 2004, 5:14 am
OT: Installing MySQL with MSYS/MINGW April 25, 2005, 10:27 pm
Problem on Debian Linux Installing DBD-mysql August 27, 2004, 3:15 am
Installing DBI module on Windows XP January 31, 2005, 9:22 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap