Click here to get back home

What happened with this year's Perl Advent Calendar?

 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
What happened with this year's Perl Advent Calendar? Jim Monty 01-05-2005
Get Chitika Premium
Posted by Jim Monty on January 5, 2005, 4:08 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
what happened to pas? perl application server? October 17, 2006, 2:38 am
I try to copy one file to other folder on Linux server, and nothing happened? Please help me. June 4, 2008, 8:20 pm
Perl Calendar Question June 1, 2005, 2:23 pm
Perl outlook calendar August 22, 2005, 12:06 pm
seeking Perl hackers to contribute to CGI Calendar August 26, 2004, 7:12 pm
Automatically extracting MS Outlook 2007 calendar entries with perl (on WIndows) June 3, 2008, 4:43 pm
Oulook Calendar August 18, 2005, 8:29 am
web events calendar-- need quick help..please May 24, 2005, 9:17 am
Hebrew Calendar conversions? April 21, 2006, 2:05 pm
Google calendar interaction October 8, 2006, 12:49 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap