print for split /(?<=\n)/, $res->result(); I got ARRAY(0x100dd10)