Click here to get back home

Msql-Mysql-modules: unable to find my mySQL 'include' dir

 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
Msql-Mysql-modules: unable to find my mySQL 'include' dir francescomoi 03-04-2005
Posted by francescomoi on March 4, 2005, 2:57 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 Martin Kissner on March 4, 2005, 5:23 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
Unable to find form January 17, 2007, 3:16 pm
can't install DBD::mysql - missing mysql.h? November 30, 2004, 4:39 pm
unable to use @ARG in Perl December 1, 2006, 6:33 am
LWP UserAgent: unable to 'get' December 29, 2005, 2:21 pm
Unable to flush o/p buffer June 12, 2006, 8:19 pm
unable to use perl on windows August 15, 2007, 2:12 pm
unable to install module GD February 16, 2008, 7:11 am
Help ! Unable to create tmp file using a CGI script January 10, 2005, 9:41 pm
Unable to connect to remote host March 31, 2005, 8:22 pm
unable to get all html code on Yahoo December 27, 2005, 9:11 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap