in reply to Discovering the lvaluable function behind the reference

  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.
  • Comment on Re: Discovering the lvaluable function behind the reference

Replies are listed 'Best First'.
Magic (Re: Re: Discovering the lvaluable function behind the reference)
by Mr. Muskrat (Canon) on May 29, 2003 at 18:57 UTC

    As you probably already know, I have only recently started delving into the magic behind the scenes. Do you have any suggestions for this magician's apprentice?

    I think that it would be best, for all parties, if I hold off on attempting #2 until I am more in tune with the magic.