Click here to get back home

No execution of system calls in cygwin-perl after update

 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
No execution of system calls in cygwin-perl after update boltz 08-24-2006
Get Chitika Premium
Posted by boltz on August 24, 2006, 4:22 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
how to limit system() execution time? May 22, 2005, 10:50 pm
System calls question May 5, 2005, 7:18 pm
Perl System Calls May 13, 2005, 10:33 am
sleep between system calls October 31, 2005, 7:09 am
feedback from system() etc. calls? September 8, 2008, 5:27 am
system calls (mv + grep) within Perl script January 6, 2006, 3:19 pm
system() calls in windows not working for some users January 24, 2006, 2:22 pm
multiple system calls running at the same time June 21, 2006, 5:13 pm
RPC::XML::Server make_method .xpl files - Not able to make system calls August 10, 2006, 3:30 am
Home-built Twirling Bar Between Multiple System Calls May 6, 2007, 11:20 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap