Russ, thanks for your incredibly detailed response to my question. I am currently studying it as if it were the Bible. I was intrigued by the syntax: push @{ $First{ $A$_ } }, $_ for (0..$#A); I understand what this statement does, but not why it works. P. 259 of the Camel book says that "The argument to push must be a real array, not just a reference to an array." So far so good. It looks as if the syntax creates an anonymous array whose elements are the values of %First. But I see a problem. It says on page 531 of the Camel book that "Hash values do not spring into existence upon reference." So it seems to me that we have a deadlock here. Push demands a value of %First, but %First can only get its values from Push. It seems to me that at the first iteration the command is equivalent to: push @{$First{1}},0; But this ought to fail because at the time of the first iteration $First{1} does not exist. Can anyone explain?

In reply to RE: RE: Many-To-Many Relationship by Anonymous Monk
in thread Many-To-Many Relationship 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.