Click here to get back home

Perl core support for inside-out classes

 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 core support for inside-out classes Anno Siegel 06-24-2006
Get Chitika Premium
Posted by Anno Siegel on June 24, 2006, 5:42 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 Dr.Ruud on June 24, 2006, 6: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
At what (if any) point does InsideOut become OO-overkill? December 5, 2006, 2:41 pm
Perl core dumping - possible bug? September 12, 2005, 6:48 pm
Adding Perl Core functions April 22, 2005, 11:57 pm
How to open Perl.5.8.6.Core for Viewing Errors June 22, 2006, 2:00 am
perl -d memory fault and core dump. November 20, 2006, 2:04 pm
fedora core 5 + install net::ssh::perl = hangs June 25, 2007, 6:32 am
perl dumps core on AIX when loading external library February 13, 2006, 11:31 am
Perl classes NOT in separate files December 1, 2004, 11:01 pm
Data inheritence with classes in Perl October 13, 2006, 12:01 am
Multiple Classes per File and use (was: OO Perl...) February 5, 2007, 5:49 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap