Click here to get back home

Perl outlook 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
Perl outlook calendar timgerr()@()gmail.com 08-22-2005
Posted by timgerr()@()gmail.com on August 22, 2005, 12:06 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 Brian Helterline on August 22, 2005, 7:45 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
Automatically extracting MS Outlook 2007 calendar entries with perl (on WIndows) June 3, 2008, 4:43 pm
Reading another user's Outlook calendar? February 22, 2006, 4:28 pm
Perl Calendar Question June 1, 2005, 2:23 pm
Tranlating VB code into Perl to utilise Outlook Redemption March 18, 2006, 2:28 pm
seeking Perl hackers to contribute to CGI Calendar August 26, 2004, 7:12 pm
What happened with this year's Perl Advent Calendar? January 5, 2005, 4:08 pm
Sending Outlook Email w/voting buttons through a Perl script... November 19, 2004, 11:31 am
PERL ---> Move email from Inbox folder to another or vice versa in OUTLOOK August 4, 2006, 10:39 pm
Outlook -- email March 7, 2008, 1:40 am
Oulook Calendar August 18, 2005, 8:29 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap