Re: Extra text printed by Data::Dumper

2017-02-04 Thread SSC_perl
> On Feb 3, 2017, at 7:17 PM, Ken Slater wrote: > > HTH Yes, it does. Thanks to both you and Chas for the help. Frank

Re: Extra text printed by Data::Dumper

2017-02-03 Thread Ken Slater
On Fri, Feb 3, 2017 at 7:18 PM, SSC_perl wrote: > I have the following sub that creates a log file using > Data::Dumper. It also lists the name of each of the variables that it’s > fed. It works great except for one problem - every line is appended with “ > = undef;” (minus the quotes).

Re: Extra text printed by Data::Dumper

2017-02-03 Thread Chas. Owens
You are splitting on /,/ but your name and value are separated by a space. This means $var_name is being set to "database $database" not "database" and $var_value is undef (the undefined value). This whole routine is suspect though. What if you want to pass an array or a hash? You can't pass the