Click here to get back home

web events calendar-- need quick help..please

 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
web events calendar-- need quick help..please Su 05-24-2005
Get Chitika Premium
Posted by Su on May 24, 2005, 9:17 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
Events in Perl April 20, 2006, 8:23 am
Win32::GUI::TreeView events November 1, 2005, 1:30 pm
Catching win32 events May 29, 2006, 9:59 am
Catching win32 events May 29, 2006, 9:59 am
Perl-related events in 2006 ? April 5, 2006, 2:27 am
Algorithm: spreading out jobs/events in time June 17, 2005, 11:46 pm
Win32::OLE, InternetExplorer, NewWindow, Events --- crashes January 12, 2006, 9:19 am
Simulate click events in a Win32 application May 29, 2006, 11:11 am
How to generate events in Siemens Server View June 19, 2006, 7:23 am
Callback/hooks/events handler code needed July 28, 2008, 2: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