in reply to Array ref error!

What's the code that assigns to $sql?