Click here to get back home

Calling a COM object from Perl

 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
Calling a COM object from Perl Topman 02-01-2005
Posted by Topman on February 1, 2005, 12:43 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
Calling a COM object from Perl February 1, 2005, 12:37 pm
Calling a method of the calling object ... September 15, 2005, 10:52 am
Q: ActivePerl - calling an ActiveX object August 1, 2006, 9:22 pm
Free tutorial on Object Perl (Object-Oriented Perl) December 21, 2005, 9:12 pm
object "loses values" when other object created July 29, 2005, 3:55 am
Object References as a member of a bigger Object August 5, 2007, 7:02 pm
calling AWK from perl question June 9, 2006, 7:13 pm
Calling 'C' function from Perl February 15, 2007, 12:49 am
Calling Another Application From Perl August 16, 2008, 9:52 pm
Calling a perl script from an html doc October 18, 2004, 12:44 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap