in reply to
MS-Word OLE and Joining Tables
Here is my (untested) take on what the perl equivalent is:
use Win32::OLE qw(in valof with OVERLOAD);
Win32::OLE->Option(_NewEnum => 1);
for my $oPara (in $Word->ActiveDocument->Paragraphs)
my $oRange = $oPara->Range;
next unless $oRange->Information(wdWithInTable) ;
$oRange = $oRange->Next;
next if $oRange->Information(wdWithInTable) ;
$oRange->Delete() if $oRange->Text eq vbCr;
Showing the "in <object>" syntax - this is what you seem to be struggling with.
"By three methods we may learn wisdom: First, by reflection, which is noblest; Second, by imitation, which is easiest; and third by experience, which is the bitterest."