Keep in mind my example is a bit too simple - it needs a way to exempt some symbols including those provided by perl, desired configuration variables anything exported by modules. It should be 100% safe to stomp all over pad variables - I'm a little leery of the globals because other things may attempt to do strange and untoward things which would be broken by renaming it out of the way. So its not perfect but its flaws are well known and can be corrected with a minimum of effort.
Seeking Green geeks in Minnesota