Click here to get back home

perl -d memory fault and core dump.

 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
perl -d memory fault and core dump. LHradowy 11-20-2006
Get Chitika Premium
Posted by LHradowy on November 20, 2006, 2:04 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
Thanks for reply to Perl core dump issue .. i have found a work around ... February 3, 2005, 9:28 pm
core dump after alarm goes off October 16, 2005, 6:10 pm
Core dump while calling external commands using system() November 9, 2004, 9:18 am
Segmentation fault (core dumped) August 8, 2006, 4:18 am
Segmentation Fault (core dumped) on Solaris 10 January 8, 2008, 10:15 am
Data structure problem to solve Linux memory fault May 10, 2007, 1:29 pm
perl flawed or my fault October 2, 2006, 10:59 pm
Variable dump July 29, 2007, 8:08 am
Perl core dumping - possible bug? September 12, 2005, 6:48 pm
Adding Perl Core functions April 22, 2005, 11:57 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap