in reply to Tying package-variable hashes

Well, Perl doesn't use Perl's data structures for working with the symbol table, it uses perl's. It doesn't convert things like $foo = 1 into ${ $main::{foo} } = 1, because that'd be too damn slow. So I'm afraid you can't really do what you're trying to do, unless you tie() EVERY variable you make into a special monitoring class.

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

Replies are listed 'Best First'.
Re: Re: Tying package-variable hashes
by premchai21 (Curate) on Nov 10, 2001 at 01:43 UTC
    Oh, I'm not trying to do anything in particular. I was just wondering whether there was a particular way this worked, and/or a particular reason for it working that way. Your post does however provide some insight. Thank you.