Click here to get back home

Why No Famous Open Source Projects From Britain/Ireland?

 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
Why No Famous Open Source Projects From Britain/Ireland? Robert 04-09-2007
Posted by Jim Ford on April 14, 2007, 11:40 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

Posted by Jim Ford on April 14, 2007, 11:43 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
Is Perl open source? April 12, 2005, 8:06 pm
DO NOT USE JAVA BECAUSE IT IS NOT OPEN SOURCE March 31, 2006, 11:59 pm
Hi friends see my webpage and open the weblinks in that page it consists of 1.latest antivirussoftware 2.library softwares 3.software projects 4.software cracks 5.download accelerator plus 6.mobile themes 7.mobile softwares(for nokia,samsung,son July 17, 2007, 12:50 pm
Open Source Blog SW wanted January 18, 2006, 6:50 pm
Source for the open perl function March 18, 2008, 4:40 am
[OT] Perl Developers Needed for Open-Source ATC! August 5, 2004, 8:53 am
Australian Open Source Developers' Conference July 11, 2005, 4:51 pm
OCI announces open source CORBA ORB in Perl July 19, 2007, 3:58 pm
Re: [IDE] - The Dynamic Opportunity - ActiveState Komodo IDE / Open Source January 26, 2006, 7:04 pm
Perl - no longer open source and facing extinction December 31, 2007, 7: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