Click here to get back home

DB Module installation issue in Perl

 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
DB Module installation issue in Perl Pioneer 04-21-2007
Get Chitika Premium
Posted by Pioneer on April 21, 2007, 7:28 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

Posted by Sherm Pendley on April 21, 2007, 7:54 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
New Perl installation can't find module April 11, 2005, 12:10 pm
perl cgi session module installation problem. June 5, 2006, 9:31 am
query regarding perl module installation in local directory July 28, 2007, 4:08 pm
module installation February 16, 2008, 9:21 pm
module installation trouble February 11, 2005, 11:02 am
How do I specify @INC during CPAN module installation? December 5, 2006, 10:31 pm
incomplete module installation March 5, 2007, 4:55 pm
Module Installation Problem: Prerequisite January 17, 2006, 11:22 pm
Problems locating C++ compiler / linker / make during installation of a module via CPAN June 20, 2005, 3:29 am
Issue with CGI module and hidden fields January 15, 2007, 8:40 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap