Click here to get back home

dbd-PG install help

 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
dbd-PG install help pyammine 01-31-2006
Get Chitika Premium
Posted by pyammine on January 31, 2006, 11:37 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
How to install module when I am not allowed to install moudule in system directory? August 18, 2006, 12:58 pm
how to install sybperl??? August 25, 2004, 5:42 pm
Module::Install October 7, 2004, 8:34 am
Net::POP3 Install October 22, 2004, 8:37 pm
GD.pm install woes October 30, 2004, 2:00 am
How to install DBI on Solaris? February 24, 2005, 6:01 pm
DBI - install problems May 20, 2005, 1:18 am
How do I install this package using ppm? September 28, 2005, 6:45 pm
Getting mods to install? October 18, 2005, 11:37 am
DBI install failed May 26, 2006, 6:26 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap