Click here to get back home

Re: Shared memory location

 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
Re: Shared memory location anno4000 01-30-2007
Get Chitika Premium
Posted by anno4000 on January 30, 2007, 9:35 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
perl and shared memory April 6, 2005, 12:02 am
IPC on Win XP: messages, shared memory September 5, 2006, 3:20 am
Shared memory for data structures September 7, 2004, 8:57 am
perl variables allocated in shared memory - feasible/possible/done already? February 3, 2007, 6:48 am
Shared perl reposity June 3, 2005, 8:46 pm
5.10 threads :: shared message December 20, 2007, 11:00 am
Apache::Session shared between user July 15, 2005, 8:31 am
Embedding perl in shared libs November 22, 2006, 2:53 am
threads::shared and nested hash September 18, 2007, 9:31 am
how to: create/use/modify shared variable in Perl 5.6.1 November 14, 2007, 2:33 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap