It was my first time I was on this site. Sorry! I didn't know anything about posting. As a matter of fact it was a dumb question anyway. I just figured it out by reading Larry's book. May be someday when I will be better, I will have some challenging probs. for you guys. By the way it wasn't a homework problem. I just wanted to learn perl. That's all!