Re: "Watching" all variables in a specific namespace?

[email protected] (Gabor Szabo) Mon, 11 Oct 2004 11:44:31 +0200 (IST)
Newsgroups perl.debugger
Message-ID <[email protected]>
On Sun, 10 Oct 2004, Yuval Yaari wrote:

> And more importantly, how can I watch array changes, hash changes, etc?

Not the perfect solution but for a specific simple array or
simple hash I'd put a watch on some expression that represents
the whole array or hash:

w join ":",@a

w join ":",%h


for more complex variables with some references as values you might
want to watch the serialized version of the variable.


Gabor
http://www.szabgab.com/