Click here to get back home

several problems with cygwin perl, Activeperl, perlmagick and Apache (Windows)

 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
several problems with cygwin perl, Activeperl, perlmagick and Apache (Windows) Daniela Duerbeck 12-21-2005
Get Chitika Premium
Posted by Daniela Duerbeck on December 21, 2005, 3:08 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
File::Find problem on windows+apache+activePerl February 27, 2006, 10:54 am
installing dbd::mysql via cygwin on windows December 4, 2004, 1:31 am
Performance on Windows: Cygwin is much faster. Why? June 7, 2008, 8:26 am
Apache and Perl in Windows December 23, 2005, 7:29 pm
C/C++:Can't Use "ssh/rsh ... ps ..." To Windows: cygwin not allowed, application conflicts May 9, 2005, 12:24 pm
Problems With mod_perl On Apache 2.0 April 3, 2006, 10:37 pm
Why a Perl script ran on Shell andr Windows but not on Apache Linux? October 3, 2004, 8:31 am
Log::Agent in ActivePerl Windows? March 3, 2005, 6:15 pm
PERL can't open file for logging (world writable directory Windows XP Home/ Active Perl / Apache) November 8, 2006, 5:50 pm
ActivePerl / IIS 6 / Windows Server 2003 SP1 April 15, 2005, 12:13 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap