in reply to Reverse engineering some code :(
Looking at how get_score is used in triviabot.pl, it seems that it should be returning a reference to an array of hashrefs instead, which you would do like:
return $obj->{dbh}->selectall_arrayref("SELECT * FROM scores", { S +lice => {} }) };
|
|---|