Click here to get back home

combine perl and makefile

 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
combine perl and makefile billy 04-21-2006
Posted by billy on April 21, 2006, 8:10 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
Makefile - perl script syntax error August 24, 2005, 5:58 pm
makefile shows wrong perl version May 10, 2007, 4:32 pm
5.8.8 build fails - no Makefile February 18, 2006, 1:40 pm
Detecting C compiler in Makefile.PL May 12, 2008, 5:27 pm
makefile syntax to exclude files February 21, 2006, 9:23 am
Installing extra data files with a Makefile.PL? October 15, 2004, 6:43 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
Combine many files into one using perl March 22, 2006, 5:44 am
perl style: can I combine two steps into one? February 4, 2005, 12: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