Click here to get back home

building Apache::Template 0.9

 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
building Apache::Template 0.9 Thomas Kratz 09-11-2004
Posted by Thomas Kratz on September 11, 2004, 4:51 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
apache::template July 23, 2005, 12:38 am
starting apache with mod_perl, error on Apache.pm July 21, 2004, 5:26 pm
Building perl February 28, 2005, 9:01 pm
building projects August 22, 2005, 4:25 am
about building the project February 2, 2006, 6:05 am
Need help on building regex December 21, 2006, 10:04 am
Building DBD::Pg on Windows? June 4, 2007, 7:47 am
building goocanvas June 3, 2008, 7:20 pm
Error building perl on HP-UX June 9, 2005, 1:25 am
Problem building P5NCI February 1, 2007, 3:33 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap