Re: Dumping values of all vars

2004-01-15 Thread Dan Anderson
On Thu, 2004-01-15 at 18:17, James Edward Gray II wrote: > On Jan 15, 2004, at 5:06 PM, Dan Anderson wrote: > > > And I agree that Data::Dumper is much more complicated then it needs to > > be. > > Data::Dumper is a standard module and I find it super useful. I just > showed it in a one liner,

Re: Dumping values of all vars

2004-01-15 Thread James Edward Gray II
On Jan 15, 2004, at 5:06 PM, Dan Anderson wrote: And I agree that Data::Dumper is much more complicated then it needs to be. Data::Dumper is a standard module and I find it super useful. I just showed it in a one liner, so I don't think we can say it's too hard to get into. I encourage others

Re: Dumping values of all vars

2004-01-15 Thread Dan Anderson
> As a rule though, Data::Dumper doesn't erase data, as you can see below: One more thing. I have noticed a problem with Data::Dump where if the data structures are too complex the data can disapear. I'm not quite sure why. Usually I use it in {}s on a temporary variable which is a copy of what

Re: Dumping values of all vars

2004-01-15 Thread Dan Anderson
On Thu, 2004-01-15 at 17:59, James Edward Gray II wrote: > On Jan 15, 2004, at 4:40 PM, Dan Anderson wrote: > > > I use the Data::Dump package which is a standard module. > > I'm willing to bet you actually use Data::Dumper. Oh yeah, how much are we betting? My car could use turbo chargers and

Re: Dumping values of all vars

2004-01-15 Thread Dan Anderson
On Thu, 2004-01-15 at 17:59, James Edward Gray II wrote: > On Jan 15, 2004, at 4:40 PM, Dan Anderson wrote: > > > I use the Data::Dump package which is a standard module. > > I'm willing to bet you actually use Data::Dumper. Nope. I use Data::Dump. Then I call Data::Dump::dump() to dump a vari

Re: Dumping values of all vars

2004-01-15 Thread James Edward Gray II
On Jan 15, 2004, at 4:40 PM, Dan Anderson wrote: I use the Data::Dump package which is a standard module. I'm willing to bet you actually use Data::Dumper. Be warned that calling Data::Dump::dump($variable) will undef $variable! Well, Dump() (not dump) is meant to be called as a method and takes

Re: Dumping values of all vars

2004-01-15 Thread Dan Anderson
On Thu, 2004-01-15 at 12:35, zentara wrote: > On Wed, 14 Jan 2004 12:40:31 -0700, [EMAIL PROTECTED] (Jdavis) wrote: > > >Hello, > > Is it possible to dump the values of all the vars in a perl script > >easily? I want to have a sub called Error that when called > >will tell me the current value of

Re: Dumping values of all vars

2004-01-15 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jdavis) writes: >Hello, > Is it possible to dump the values of all the vars in a perl script >easily? I want to have a sub called Error that when called >will tell me the current value of all the vars in the script. You can dump out all the vari

Re: Dumping values of all vars

2004-01-14 Thread Mark Stosberg
On 2004-01-14, jdavis <[EMAIL PROTECTED]> wrote: > Hello, > Is it possible to dump the values of all the vars in a perl script > easily? I want to have a sub called Error that when called > will tell me the current value of all the vars in the script. Have you read about the perl debugger? I rec

Dumping values of all vars

2004-01-14 Thread jdavis
Hello, Is it possible to dump the values of all the vars in a perl script easily? I want to have a sub called Error that when called will tell me the current value of all the vars in the script. thanks, -- jdavis <[EMAIL PROTECTED]> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional