Click here to get back home

Makefile.PL- install modules on home directory

 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
Makefile.PL- install modules on home directory Nina 10-11-2005
Posted by Nina on October 11, 2005, 9:17 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 Mothra on October 11, 2005, 9:31 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
Tried to install activeperl on windows xp home June 29, 2005, 6:46 pm
Tried to install activeperl on windows xp home June 29, 2005, 6:47 pm
Home directory not seen as writable in Vista August 3, 2007, 4:02 am
How to install module when I am not allowed to install moudule in system directory? August 18, 2006, 12:58 pm
Migrating thousands of user home, profile, apps and groups directory paths August 20, 2005, 9:51 am
PERL can't open file for logging (world writable directory Windows XP Home/ Active Perl / Apache) November 8, 2006, 5:50 pm
CPAN install from a local directory July 26, 2004, 1:21 pm
make install in anderes Directory March 3, 2005, 9:53 pm
Auto Install modules if not installed? May 18, 2005, 7:42 am
Not able to install 'Msql-Mysql-modules' July 27, 2005, 9:28 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap