chorg has asked for the wisdom of the Perl Monks concerning the following question:

Hello all,

I am trying to use the debugger in perl (perl5db.pl). I have tried to use x varname but that only gives me 0 and the name of the variable. I have tried

V varname

and  X varname but that gives me a ton of stuff, when I just want to see varname's value. I should add that varname is an array or hash, so I want to see the values pretty printed. The docs say that this can be done, but how?
_______________________________________________
"Intelligence is a tool used achieve goals, however goals are not always chosen wisely..."

Replies are listed 'Best First'.
Re: Problems seeing vars using debugger
by ChOas (Curate) on Nov 23, 2000 at 18:10 UTC
    Tried these ?:

    x $Varname
    x @Varname
    x %Varname

    Perl would like to know which one you mean,
    (The scalar varname, the list, or the hash)

    GreetZ!,
      ChOas

      Wicked! Thanks a lot - that works for x. Yeehaa!

      How about X and V? I really would like to be able to inspect object properties and more complex data structures
      _______________________________________________
      "Intelligence is a tool used achieve goals, however goals are not always chosen wisely..."