> What does delete $My::{Run} do?

It deletes the entry for the symbol (typeglob) in the namespaces/symbol table/ STASH %My::

I can't test now, but my guess is that the compiled code is "linked" to the old typeglob's CODE slot. (IIRC that's what B::Concise shows ¹)

Redefining the sub in a require or eval or whatever will repopulate the slot.

But after deleting the entry in the symbol table a new typeglob is created and autovivified into the stash. °

I could create rather complicated tests to prove all of this with all interpretations of what the OP probably wants to achieve.

Unfortunately I'm too busy for guesswork, and honorable ikegami or Dave Mitchell should know the implementation better.

You might be interested into following introspection tools

Looking up following documentation might help

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

Updates

°) Also diving into implementation details is kind of non productive if undef and sub already do the job. And typeglobs are particularly icky Perl4 stuff which are badly explained and supported by introspection.

¹) see Re^2: Refresh a Module


In reply to Re^5: Refresh a Module by LanX
in thread Refresh a Module by Timka

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.