Because the "pages" really are close to web pages (or CGI scripts?). It is too difficult to explain without giving some more detail about the application, so I will: the application is an interactive projection system that plays what we call "spots", which are short interactive segments with graphics and behavior that users will play with. The spots are organized into a playlist that loops repeatedly. The authors of the spots are artists -- technically-minded artists, but still much stronger artistically than technically -- and I do not want to burden them with the overhead of constructing proper Perl objects. Also, the spots aren't really reusable in any useful way. (The fragments that are, I pull out and create objects out of, but the original authors don't know how to.)

So although I don't think it would work to encapsulate them as objects, it might be a good idea to take a hint from Apache::Registry and wrap them in subroutines.

Oh, and as long as a playlist is active, I don't really have any problems; all of the spots can stay alive in the interpreter. The problem comes when I switch to another playlist -- I want to free up everything from the first playlist. Also, when switching back to a playlist, I want it to be running in a clean environment, and not find little fragments of earlier incarnations of itself lying around. At the same time, the interpreter is used for other things, so I don't want to just kill and recreate it.


In reply to Re: Re: Deleting a package by sfink
in thread Deleting a package by sfink

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.