> 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
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).
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
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).
I’ve tried stripping it out of $var_value w