in reply to Re^2: Concatenating scripts intelligently
in thread Concatenating scripts intelligently

Sorry, I was using "sandboxing" loosely. It's still useful, especially since when I delete one of these script tag nodes, I can use Symbol.pm to delete its package and get rid of most of what it did in the (global) perl interpreter. If the script puts anything into another package, then it will survive indefinitely -- but that is usually more of a feature than a drawback, since it can be convenient to write a script that, say, rewrites the menu system permanently when you run it. I'd rather give script writers loaded bazookas and maps showing where their feet are, than try to enforce limitations externally.

Having a unique package is good for other things too, but I don't suppose it's relevant to this thread.

  • Comment on Re^3: Concatenating scripts intelligently