Click here to get back home

apache mod perl dbi mysql : Premature end of script headers:

 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
apache mod perl dbi mysql : Premature end of script headers: wana 09-17-2004
Posted by wana on September 17, 2004, 3: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
premature end of script headers May 3, 2006, 8:06 am
Premature end of script headers June 8, 2006, 1:39 am
Premature end of script headers: mail.cgi July 18, 2006, 6:18 pm
warning flag on shebang line - premature end of script header May 17, 2005, 8:58 am
Apache 2.0 worker MPM, mod_perl 2 & MySQL June 25, 2005, 8:51 am
perl script for apache mod_rewrite September 8, 2006, 11:06 am
speeding up perl script execution under apache October 29, 2004, 5:29 pm
calling perl script in apache conf February 21, 2006, 4:22 am
Apache vs IIS current directory fro Perl script May 8, 2008, 3:09 am
Why a Perl script ran on Shell andr Windows but not on Apache Linux? October 3, 2004, 8:31 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap