Click here to get back home

mod_perl-specific Compiler Options

 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
mod_perl-specific Compiler Options sonet 01-06-2007
Get Chitika Premium
Posted by sonet on January 6, 2007, 2:55 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
Is there a PERL compiler? July 27, 2004, 7:40 pm
compiler optimization October 30, 2004, 3:41 am
no acceptable C compiler November 24, 2004, 5:24 pm
XS compiler for Perl May 8, 2005, 8:47 pm
Perl compiler September 16, 2006, 12:29 pm
Specifying options for Net::SFTP December 28, 2007, 12:37 pm
Want to install Perl compiler October 27, 2006, 2:41 pm
Perl compiler for MAC and Linux? September 28, 2007, 8:44 am
Detecting C compiler in Makefile.PL May 12, 2008, 5:27 pm
Passing options to a subroutine October 5, 2005, 7:46 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap