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 references to variables, so there is quite a bit wrong with the above line which could explain your troubles.


As a rule though, Data::Dumper doesn't erase data, as you can see below:

perl -MData::Dumper -e '$var = 103; print Dumper(\$var); print "Still holds: $var.\n"'
$VAR1 = \103;
Still holds: 103.


James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to