in reply to
Re^3: Can't use string ("0") as a HASH ref
in thread Can't use string ("0") as a HASH ref
Thanks tip "use Data::Dumper;"
you are correct: my problem was wrong parameters in the call to the subroutine!
the code although mangled in an attempt to find the error is correct!
wish the error messages were a little more enlighting!