in reply to Weird hash ref variable issue

Don't know the module, but your results would suggest that for example $results->valid('url') is returning an array instead of a scalar.

I would suggest using Data::Dumper and dumping join('',Dumper($results->valid('url'))); (or even the whole valid structure) into the log to check