I know that feeling! It's a common brain-response when getting questions answered here. I
highly recommend getting a copy of
Learning Perl. Basic stuff like this is covered well with many exercises to give you a feel for how to use the language.
-Theo-
(so many nodes and so little time ... )