in reply to Re^3: Perl script to check database works or does it?
in thread Perl script to check database works or does it?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Perl script to check database works or does it?
by choroba (Cardinal) on Jan 05, 2016 at 13:22 UTC |