Click here to get back home

installing extra file through ExtUtils::MakeMaker

 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
installing extra file through ExtUtils::MakeMaker Abdul-Wahid Paterson 11-08-2004
Get Chitika Premium
Posted by Abdul-Wahid Paterson on November 8, 2004, 7:46 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 Anno Siegel on November 9, 2004, 12:53 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
Q for ExtUtils::MakeMaker experts May 4, 2006, 6:15 pm
libstdc++ problem with ExtUtils::MakeMaker July 19, 2006, 9:19 pm
ExtUtils::MakeMaker - how to distribute CGI script? May 20, 2007, 12:08 pm
Trouble running test scripts with ExtUtils::MakeMaker March 2, 2006, 5:21 pm
ExtUtils::MakeMaker under Win32 - problem - missing double-quotes May 8, 2006, 2:18 pm
Problem installing ExtUtils::Command from CPAN October 30, 2006, 11:43 pm
Installing extra data files with a Makefile.PL? October 15, 2004, 6:43 pm
How to remove extra lines in a XML file using perl November 20, 2005, 3:22 pm
ExtUtils chmod on Windows? August 10, 2007, 8:57 am
5.8.5 make test fails on lib/ExtUtils/Constant with icc August 25, 2004, 5:36 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap