As far as I can tell, that syntax looks to be just fine. What I would do at this point is to post an actual running script (doesn't have to be long) and its output, including errors. That way, we can help you more.
------ /me wants to be the brightest bulb in the chandelier!