Click here to get back home

perl 5.8.8 with Template::Cache error

 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
perl 5.8.8 with Template::Cache error danparker276@yahoo.com 03-28-2007
Posted by danparker276@yahoo.com on March 28, 2007, 4:52 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
perl html template error March 11, 2008, 10:24 am
cgi::cache question April 21, 2006, 9:29 pm
cgi::cache question April 21, 2006, 9:30 pm
Invisible cache for LWP / Mechanize? January 28, 2005, 2:20 am
Cache mechanism for method lookup August 29, 2006, 12:03 pm
Making LWP::RobotUA cache robots.txt files December 22, 2005, 11:05 am
Strategy about browser cache and generated pages January 15, 2006, 9:09 pm
HTML::template Module in perl April 6, 2007, 7:26 am
HTML::Template module in perl April 9, 2007, 4:29 am
Image Magick - Exception 445: pixel cache not open November 18, 2004, 11:51 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap