1. When dealing with MAGIC, you have to remember that its a linked list and a "thing" may have more than one form of magic applied. You have to walk the MAGIC/MOREMAGIC list.
  2. Finding out that %imahash is the name of lexical (or global) that was passed in is not trivial. In essense your job becomes: examine your calling context's pad and see if the hash is present there. If so, that's the name. Otherwise you have to find it in the symbol table by doing a search. If that fails then the hash might be present in a Lexical::Typeglob and you aren't going to find it unless you repeat the search except examing the contents of typeglob references as well.

In reply to Re: Discovering the lvaluable function behind the reference by diotalevi
in thread Discovering the lvaluable function behind the reference by Mr. Muskrat

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.