Click here to get back home

Thanks for reply to Perl core dump issue .. i have found a work around ...

 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
Thanks for reply to Perl core dump issue .. i have found a work around ... Gancy 02-03-2005
Posted by Gancy on February 3, 2005, 9:28 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

Posted by Anno Siegel on February 6, 2005, 8:46 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
perl -d memory fault and core dump. November 20, 2006, 2:04 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
fedora core 3 install error - no drives found January 27, 2006, 6:37 pm
second substitution to work only on a found pattern October 9, 2006, 1:02 pm
Variable dump July 29, 2007, 8:08 am
Perl core dumping - possible bug? September 12, 2005, 6:48 pm
How do I reply a NNTP message? December 6, 2005, 12:46 am
Issues to post reply June 1, 2007, 1:26 am
Mail::Mailer - 'Reply To' August 10, 2008, 10:20 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap