in reply to How to track variable usage in a script?

What do you mean, print all variables (and their values) that exist in your program? Including the lexical ones? Or you have a set of variables you want to keep track of? All variables of the current scope?

And what has your question to do with its title?

Abigail

  • Comment on Re: How to track variable usage in a script?

Replies are listed 'Best First'.
Re: Re: How to track variable usage in a script?
by Scarborough (Hermit) on Mar 22, 2004 at 16:47 UTC
    Guess your right not a lot to do with the title.

    The code I have inherited makes many calls to subs, passing the whole array of arguements as referances.
    What I am trying to do is have a sub somewhere which will print out all the values after the returns so that I can monitor whats being changed where.
    While I could use a print statement and list all the variables, I have some 500 programs to test.

Re: Re: How to track variable usage in a script?
by wolis (Scribe) on Mar 23, 2004 at 04:58 UTC
    No one has mentioned Data::Dumper yet.

    Is there a reason for this?

    ___ /\__\ "What is the world coming to?" \/__/ www.wolispace.com