Click here to get back home

Installing extra data files with a Makefile.PL?

 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 data files with a Makefile.PL? Erik Wasser 10-15-2004
Posted by Erik Wasser on October 15, 2004, 6:43 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 Randy Kobes on October 16, 2004, 10: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

Similar ThreadsPosted
installing extra file through ExtUtils::MakeMaker November 8, 2004, 7:46 am
makefile syntax to exclude files February 21, 2006, 9:23 am
5.8.8 build fails - no Makefile February 18, 2006, 1:40 pm
combine perl and makefile April 21, 2006, 8:10 am
Detecting C compiler in Makefile.PL May 12, 2008, 5:27 pm
Makefile - perl script syntax error August 24, 2005, 5:58 pm
Makefile.PL- install modules on home directory October 11, 2005, 9:17 am
Makefile.PL requires parameters for Sendmail::Milter August 17, 2006, 7:07 am
makefile shows wrong perl version May 10, 2007, 4:32 pm
Parse log files for data July 31, 2004, 6:49 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap