Click here to get back home

Perl And Apache.

 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 And Apache. Morris.C 10-24-2005
---> Re: Perl And Apache. it_says_BALLS_o...10-23-2005
Get Chitika Premium
Posted by Bart Lateur on October 25, 2005, 10:44 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
starting apache with mod_perl, error on Apache.pm July 21, 2004, 5:26 pm
Perl On Apache August 10, 2007, 2:13 pm
Perl and Apache locking October 14, 2005, 5:16 pm
Apache and Perl in Windows December 23, 2005, 7:29 pm
problem with perl from apache February 2, 2006, 3:57 am
Trouble with Perl on Apache February 6, 2006, 12:04 am
Apache htaccess and perl August 5, 2006, 1:38 pm
Apache Configuration using PERL July 17, 2007, 11:27 am
Apache Configuration with PERL July 18, 2007, 4:24 am
Apache Configuration with PERL July 18, 2007, 4:27 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap