Click here to get back home

ExtUtils chmod on Windows?

 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
ExtUtils chmod on Windows? kk_oop 08-10-2007
Posted by kk_oop on August 10, 2007, 8: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 Sisyphus on August 10, 2007, 9:21 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
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
5.8.5 make test fails on lib/ExtUtils/Constant with icc August 25, 2004, 5:36 am
installing extra file through ExtUtils::MakeMaker November 8, 2004, 7:46 am
Problem installing ExtUtils::Command from CPAN October 30, 2006, 11:43 pm
chmod for directories August 9, 2004, 2:22 pm
Problems with chmod February 28, 2006, 6:23 pm
Setting chmod March 9, 2008, 12:26 pm
Trouble running test scripts with ExtUtils::MakeMaker March 2, 2006, 5:21 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap