Click here to get back home

Catalog() in Win32::ODBC for 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
Catalog() in Win32::ODBC for MySQL dmittleider 08-27-2006
Posted by dmittleider on August 27, 2006, 1: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 Dr.Ruud on August 27, 2006, 8:44 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
Dave Roth's site (Win32::AdminMisc, Win32::ODBC, etc.) not available. December 22, 2005, 7:38 am
DBD::ODBC as "middleware" between Crystal Reports and MySQL March 18, 2008, 2:41 pm
getting DBI and ODBC to work with PERL and MYSQL data source March 22, 2007, 12:07 am
Confusion of Win32::ODBC under CygWin. Please help... August 22, 2004, 5:03 am
Win32::ODBC Find Primary Key Column February 6, 2005, 8:14 pm
Error when connecting to database using Win32::ODBC June 9, 2006, 9:26 am
Re: Error when connecting to database using Win32::ODBC June 9, 2006, 9:44 am
Still Error when connecting to database using Win32::ODBC June 9, 2006, 9:46 am
can't rebind placehodler - Blob, ODBC, SQL Server, DBI, Win32 August 25, 2005, 10:47 am
XML::Xerces: Schema caching and XML catalog files questions June 20, 2005, 12:29 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap