RE: need help printing data tree structure

2004-06-23 Thread Thomas, Mark - BLS CTR
> I am trying to write a routine that would print out the > value(s) of the entire variable either it be scalar, hash or array: use Data::Dumper; print Dumper(\$variable); -- Mark Thomas[EMAIL PROTECTED] Internet Systems Architect DigitalNet, Inc. $_=q;Kvtuyboopuif

Re: need help printing data tree structure

2004-06-23 Thread Mike Jackson
though I've never used it, I am told that Data::Dumper does this... check cpan if you don't have it On Wed, 23 Jun 2004 13:29:44, Jaime Teng <[EMAIL PROTECTED]> wrote: Hi, I am trying to write a routine that would print out the value(s) of the entire variable either it be scalar, hash or array: ###

RE: need help printing data tree structure

2004-06-23 Thread Schichmanter, EithanX
Jaime, 1. use strict (some of your errors derive from not using it). 2. When using a recursion, you need to have the following algorithm in mind: a. Stop when the breaking condition has been reached; b. Work on the problem on a small scale: solve the problem for the minimal atomic pro