OK, got it. It's because the DB return contains NULL values so the code is basically trying to do a join on an empty string!
I have added the below just before the join and it has fixed it.
foreach (%$ref) {$_ = '' unless defined};
Thanks all
In reply to Re^4: Perl script to check database works or does it?
by chris01010
in thread Perl script to check database works or does it?
by chris01010
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |