Click here to get back home

module installation trouble

 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
module installation trouble Alexandre Jaquet 02-11-2005
Get Chitika Premium
Posted by Alexandre Jaquet on February 11, 2005, 11:02 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 Alexandre Jaquet on February 11, 2005, 11:27 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
module installation February 16, 2008, 9:21 pm
How do I specify @INC during CPAN module installation? December 5, 2006, 10:31 pm
incomplete module installation March 5, 2007, 4:55 pm
New Perl installation can't find module April 11, 2005, 12:10 pm
Module Installation Problem: Prerequisite January 17, 2006, 11:22 pm
DB Module installation issue in Perl April 21, 2007, 7:28 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
Problems locating C++ compiler / linker / make during installation of a module via CPAN June 20, 2005, 3:29 am
Trouble sending an email with Mailer module January 31, 2006, 4:37 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap