Specifically to the lines you have asked about:

    @entries = $mesg->entries;
Invoke the  entries method on the  $mesg object. The method is a member function of the class of which the object is an instance, or is a member function of a class from which the object's class inherits. The method is invoked without arguments. The method is invoked in list context (determined by assignment to the  @entries array) and a list of zero or more elements returned by the method call is assigned to the array.

    print "dn: " . $entry->dn() . "\n";
Invoke the  dn method on the  $entry object with no arguments. Method is invoked in scalar context as determined by the  . (string concatenation) operator, so a scalar returned by the method call is converted to a string, concatenated with other strings and printed.

    @attrs = $entry->attributes();
Invoke the  attributes method on the  $entry object with no arguments. Method is invoked in list context; list returned by the method call is assigned to  @attrs array.

    $entry->get_value($attr);
Invoke the  get_value method on the  $entry object with  $attr as an argument. Method is invoked in list context (as determined by its invocation in the argument list of a  printf function call in a statement in other code). List returned by method call becomes a part of the  printf function call argument list.

Update: Fixed  <p> tags per GrandFather. Also: minor wording changes.


In reply to Re: What does arrow (->) refer to? by AnomalousMonk
in thread What does arrow (->) refer to? 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.