Click here to get back home

Perl On 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 On Apache Louis 08-10-2007
|--> Re: Perl On Apache Jens Thoms Toer...08-10-2007
Get Chitika Premium
Posted by Petr Vileta on August 10, 2007, 9:51 pm
Please log in for more thread options
Bill H wrote:
> Louis - you need to enable it. Look in your httpd.conf file, either
> in : /usr/local/etc/apache/httpd.conf or in /etc/apache/httpd.conf -

or in /etc/httpd/conf/httpd.conf
on Linux of course. On windows this could be somewhere on c:\program
files\Apache
--

Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)




Posted by Gunnar Hjalmarsson on August 10, 2007, 11:55 pm
Please log in for more thread options
Petr Vileta wrote:
> (My server rejects all messages from Yahoo and Hotmail.

Funny; I get almost no spam from Yahoo or Hotmail servers.

Or are you saying that you reject messages based on the faked From
addresses??

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

Posted by Martijn Lievaart on August 16, 2007, 3:28 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

Posted by Petr Vileta on August 16, 2007, 7:48 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
starting apache with mod_perl, error on Apache.pm July 21, 2004, 5:26 pm
Perl And Apache. October 24, 2005, 12:37 am
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