Okol,
That is not a fake code. It should have happened when I copied my code there . It should be sub r1 which meant as first subroutine. The main reason for posting the code was that I didn't understand the meaning what and how the sql->hash function will work and store in output variable.