Looks like I've been getting the correct responses in the firstplace. I'm only starting to use and pass references plus I don't know Lotus Notes at all ... ingredients for confusion. I'm posting my discoveries for anyone who cares.

foreach my $embeddedDoc ( $DocumentBody->{EmbeddedObjects} ) { print ref($embeddedDoc) if ( ref($embeddedDoc)); print "\n"; #reply-> ARRAY foreach my $arryele ( @{$embeddedDoc } ) { print "Array Element: $arryele\n"; #reply-> Array Element: Win32::OLE=HASH(0x183a66c) print ref($arryele) if ( ref($arryele)); print "\n"; #reply-> Win32::OLE #I am so stupid, $arryele is a referenced object that has b +een # blessed into a package ... it says so in the documentatio +n for ref! my @array = $arryele->{Source}; print "@array\n"; # This returns the filename of the attachment my @array = $arryele->{Type}; print "@array\n"; # This returns some numeric value, EMBED_ATTACHMENT and # RICH_TEXT must be constants within Lotus Notes! It doesn +'t # return text. I've been away from MS-style object program +ming # too long ... that's a good thing right? # 1454 - File attachment # 1453 - Embedded document -- Notes internal format? #foreach my $whatisit ( @{$arryele} ) { # print "arryele: $whatisit\n"; #} # This won't work, Not an ARRAY reference at notesmail.pl +line 85 #foreach my $hashval ( keys %{$arryele} ) { # print "$hashval = $arryele->{$hashval}\n"; #} # This would never work since it's not a hash as I origina +lly thought }

In reply to Re: PERL by Anonymous Monk
in thread PERL, Win32::OLE - Lotus Notes and passing objects by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.